2022-12-18 04:36:53 +01:00
|
|
|
---
|
|
|
|
- name: Ensure shairport-sync is installed
|
2023-05-09 21:12:46 +02:00
|
|
|
become: true
|
2022-12-18 04:36:53 +01:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name: shairport-sync
|
2023-05-09 21:12:46 +02:00
|
|
|
|
2022-12-18 04:36:53 +01:00
|
|
|
- name: Ensure shairport-sync config is deployed
|
2023-05-09 21:12:46 +02:00
|
|
|
become: true
|
2022-12-18 04:36:53 +01:00
|
|
|
ansible.builtin.copy:
|
|
|
|
content: "{{ shairport_sync__config }}"
|
|
|
|
dest: /etc/shairport-sync.conf
|
2023-05-09 21:12:46 +02:00
|
|
|
mode: "644"
|
2022-12-18 04:36:53 +01:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: Restart shairport-sync service
|
2023-05-09 21:12:46 +02:00
|
|
|
|
2022-12-18 04:36:53 +01:00
|
|
|
- name: Ensure shairport-sync service is enabled and started
|
2023-05-09 21:12:46 +02:00
|
|
|
become: true
|
2022-12-18 04:36:53 +01:00
|
|
|
ansible.builtin.systemd:
|
|
|
|
service: shairport-sync
|
|
|
|
state: started
|
|
|
|
enabled: true
|