ansible-infra/playbooks/roles/shairport_sync/tasks/main.yaml

18 lines
488 B
YAML
Raw Normal View History

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