fix this variable issue another way

This commit is contained in:
Kevin Fenzi 2017-03-09 21:10:50 +00:00
parent acad15248c
commit a5baef4d61
3 changed files with 5 additions and 3 deletions

View file

@ -2,4 +2,5 @@
gw: 10.5.126.254
eth0_ip: 10.5.126.96
eth1_ip: 10.5.127.104
host_group: download-phx2-tier1
# This is a tier1 only host
rsyncd_conf: "rsyncd.conf.download-{{ datacenter }}-tier1"

View file

@ -2,4 +2,5 @@
gw: 10.5.126.254
eth0_ip: 10.5.126.97
eth1_ip: 10.5.127.105
host_group: download-phx2-tier1
# This is a tier1 only host
rsyncd_conf: "rsyncd.conf.download-{{ datacenter }}-tier1"

View file

@ -28,10 +28,10 @@
- name: rsyncd.conf file
copy: src={{ item }} dest=/etc/rsyncd.conf mode=0644
with_first_found:
- rsyncd.conf.{{ rsync_group }}
- "{{ rsyncd_conf }}"
- rsyncd.conf.{{ inventory_hostname }}
- rsyncd.conf.{{ host_group }}
- rsyncd.conf.{{ rsync_group }}
- rsyncd.conf.default
notify:
- restart xinetd