ansible/roles/music/tasks/main.yaml

30 lines
661 B
YAML

---
- tags: music_mpd
ansible.builtin.import_tasks:
file: mpd.yaml
- tags: music_trollibox
ansible.builtin.import_tasks:
file: trollibox.yaml
- tags: music_librespot
ansible.builtin.import_tasks:
file: librespot.yaml
- tags: music_soundboard
ansible.builtin.import_tasks:
file: soundboard.yaml
- tags: music
block:
- ansible.builtin.import_tasks:
file: ../../../snippets/common-nginx.yaml
- name: Install nginx config
ansible.builtin.template:
src: nginx-site.conf
dest: /etc/nginx/sites-enabled/trollibox
owner: root
group: root
mode: 0644
notify: reload nginx