-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
91 lines (86 loc) · 2.15 KB
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
- hosts: all
become_user: root
become_method: sudo
tasks:
- name: "Ensure the apt cache is up to date"
become: true
apt:
update_cache: yes
cache_valid_time: 86400 # 1 day
roles:
- role: env-common
- hosts: desktop
become_user: root
become_method: sudo
roles:
- role: env-desktop
# The RFID jukebox is not used right now
#- hosts: jukebox
# become_user: root
# become_method: sudo
# tags: rfid-jukebox
# roles:
# - role: rfid-jukebox
# tasks:
# - name: "Install packages to play audio files from the command line"
# become: true
# apt:
# name: "{{ packages }}"
# vars:
# packages:
# - sox
# - libsox-fmt-all
# - name: "Ensure /usr/local/share/sounds/rfid-jukebox/ exists"
# become: true
# file:
# path: /usr/local/share/sounds/rfid-jukebox/
# state: directory
# - name: "Copy audio file for notifications"
# become: true
# copy:
# src: /usr/share/sounds/Yaru/stereo/message-new-instant.oga
# dest: /usr/local/share/sounds/rfid-jukebox/yaru-message-new-instant.oga
# - name: "Copy audio files for notifications"
# become: true
# copy:
# src: files/sounds/
# dest: /usr/local/share/sounds/rfid-jukebox/
# - name: "Copy sound scripts for notifications"
# become: true
# template:
# src: "templates/{{ item }}.j2"
# dest: "/usr/local/share/sounds/rfid-jukebox/{{ item }}"
# mode: 0755
# loop:
# - one.sh
# - random.sh
# - name: "Ensure the rfid-jukebox user is in the audio group"
# become: true
# user:
# name: rfid-jukebox
# append: true
# groups: audio
- hosts: media_center
become_user: root
become_method: sudo
roles:
- role: snapcast
tags: snapcast
# Mopidy is not used right now
# - role: mopidy
# tags: mopidy
- role: raspotify
tags: raspotify
- hosts: media_player
become_user: root
become_method: sudo
roles:
- role: snapcast
tags: snapcast
- hosts: raspberrypi
become_user: root
become_method: sudo
tags: raspberrypi
roles:
- role: raspberrypi