瀏覽代碼

working that jinja magic

master
Erin Sims 2 年之前
父節點
當前提交
85a7d1abfc
共有 5 個檔案被更改,包括 11 行新增6 行删除
  1. +1
    -1
      playbooks/create_droplet.yml
  2. +1
    -1
      playbooks/delete_droplet.yml
  3. +1
    -1
      playbooks/mpdb.yaml
  4. +5
    -1
      playbooks/mpdf.conf.j2
  5. +3
    -2
      playbooks/mpdf.yaml

+ 1
- 1
playbooks/create_droplet.yml 查看文件

@@ -1,7 +1,7 @@
---
- hosts: localhost
connection: local
gather_facts: false
gather_facts: true
vars:
mpdf:
- 'nyc3-mpdf'


+ 1
- 1
playbooks/delete_droplet.yml 查看文件

@@ -1,7 +1,7 @@
---
- hosts: localhost
connection: local
gather_facts: false
gather_facts: true
vars:
mpdf:
- 'nyc3-mpdf'


+ 1
- 1
playbooks/mpdb.yaml 查看文件

@@ -1,5 +1,5 @@
- hosts: all
gather_facts: false
gather_facts: true
vars:
tasks:
- name: Install mpdb on hosts


+ 5
- 1
playbooks/mpdf.conf.j2 查看文件

@@ -10,9 +10,13 @@
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
#######need to fix this one too
music_directory "nfs://example.com/path/to/your/music/"

"
database {
plugin "proxy"
plugin "proxy"
host {{ hostvars[backendhost]['ansible_facts']['eth1']['ipv4']['address'] }}
host "142.93.181.29"
port "8888"
password "password"


+ 3
- 2
playbooks/mpdf.yaml 查看文件

@@ -1,5 +1,5 @@
- hosts: all
gather_facts: false
gather_facts: true
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
count: 5
@@ -36,7 +36,8 @@
volume_normalization: no
audio_buffer_size: 2048
buffer_before_play: "1%"
backendhost: "{{ inventory_hostname |replace("f","b") }}"
tasks:
- name: Install mpdf on hosts
apt:


Loading…
取消
儲存