/
/
/
1---
2- name: Create mono ALSA config when audio_merge_to_mono=true
3 ansible.builtin.template:
4 src: asound.conf.j2
5 dest: /etc/asound.conf
6 owner: root
7 group: root
8 mode: '0644'
9 when: audio_merge_to_mono | bool
10 notify:
11 - Restart ALSA (if available)
12 - Restart snapclient
13
14- name: Remove /etc/asound.conf when audio_merge_to_mono=false
15 ansible.builtin.file:
16 path: /etc/asound.conf
17 state: absent
18 when: not (audio_merge_to_mono | bool)
19 notify:
20 - Restart ALSA (if available)
21 - Restart snapclient
22
23