/
/
/
1---
2- name: Build snapclient device selection
3 ansible.builtin.set_fact:
4 _snapclient_device: "{{ 'default' if (audio_merge_to_mono | bool) else snapcast_device }}"
5
6- name: Configure /etc/default/snapclient
7 ansible.builtin.template:
8 src: snapclient.default.j2
9 dest: "{{ snapclient_env_file }}"
10 owner: root
11 group: root
12 mode: '0644'
13 notify: Restart snapclient
14
15- name: Enable & start snapclient
16 ansible.builtin.service:
17 name: snapclient
18 state: started
19 enabled: true
20
21