@@ -1,7 +1,7 @@ | |||||
--- | --- | ||||
- hosts: localhost | - hosts: localhost | ||||
connection: local | connection: local | ||||
gather_facts: false | |||||
gather_facts: true | |||||
vars: | vars: | ||||
mpdf: | mpdf: | ||||
- 'nyc3-mpdf' | - 'nyc3-mpdf' | ||||
@@ -1,7 +1,7 @@ | |||||
--- | --- | ||||
- hosts: localhost | - hosts: localhost | ||||
connection: local | connection: local | ||||
gather_facts: false | |||||
gather_facts: true | |||||
vars: | vars: | ||||
mpdf: | mpdf: | ||||
- 'nyc3-mpdf' | - 'nyc3-mpdf' | ||||
@@ -1,5 +1,5 @@ | |||||
- hosts: all | - hosts: all | ||||
gather_facts: false | |||||
gather_facts: true | |||||
vars: | vars: | ||||
tasks: | tasks: | ||||
- name: Install mpdb on hosts | - name: Install mpdb on hosts | ||||
@@ -10,9 +10,13 @@ | |||||
# be disabled and audio files will only be accepted over ipc socket (using | # be disabled and audio files will only be accepted over ipc socket (using | ||||
# file:// protocol) or streaming files over an accepted protocol. | # file:// protocol) or streaming files over an accepted protocol. | ||||
# | # | ||||
#######need to fix this one too | |||||
music_directory "nfs://example.com/path/to/your/music/" | music_directory "nfs://example.com/path/to/your/music/" | ||||
" | |||||
database { | database { | ||||
plugin "proxy" | |||||
plugin "proxy" | |||||
host {{ hostvars[backendhost]['ansible_facts']['eth1']['ipv4']['address'] }} | |||||
host "142.93.181.29" | host "142.93.181.29" | ||||
port "8888" | port "8888" | ||||
password "password" | password "password" | ||||
@@ -1,5 +1,5 @@ | |||||
- hosts: all | - hosts: all | ||||
gather_facts: false | |||||
gather_facts: true | |||||
vars: | vars: | ||||
#we need to loop over the /var/lib/mpd{{ count }} directory for the files/folders below. we need to loop over the stream ports as well | #we need to loop over the /var/lib/mpd{{ count }} directory for the files/folders below. we need to loop over the stream ports as well | ||||
count: 5 | count: 5 | ||||
@@ -36,7 +36,8 @@ | |||||
volume_normalization: no | volume_normalization: no | ||||
audio_buffer_size: 2048 | audio_buffer_size: 2048 | ||||
buffer_before_play: "1%" | buffer_before_play: "1%" | ||||
backendhost: "{{ inventory_hostname |replace("f","b") }}" | |||||
tasks: | tasks: | ||||
- name: Install mpdf on hosts | - name: Install mpdf on hosts | ||||
apt: | apt: | ||||