Don't error out when the sound unit does not exist.

This commit is contained in:
Tom Alexander 2022-11-28 23:02:08 -05:00
parent 178522c2af
commit 8ce926be8e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@
value: "{{ item.value }}" value: "{{ item.value }}"
state: present state: present
sysctl_file: "/etc/sysctl.conf.local" sysctl_file: "/etc/sysctl.conf.local"
# Disabling loading the sysctl because the unit does not exist when not docked.
reload: false
loop: loop:
- name: hw.snd.default_unit - name: hw.snd.default_unit
value: "{{ sound_default_unit }}" value: "{{ sound_default_unit }}"