ok we use a template for the download servers and not for the rest
This commit is contained in:
parent
67308bf507
commit
3f7298ce8d
1 changed files with 15 additions and 13 deletions
|
@ -25,24 +25,26 @@
|
||||||
- rsyncd
|
- rsyncd
|
||||||
when: ansible_distribution_major_version|int > 21
|
when: ansible_distribution_major_version|int > 21
|
||||||
|
|
||||||
# - name: rsyncd.conf file
|
- name: rsyncd.conf file
|
||||||
# copy: src={{ item }} dest=/etc/rsyncd.conf mode=0644
|
copy: src={{ item }} dest=/etc/rsyncd.conf mode=0644
|
||||||
# with_first_found:
|
with_first_found:
|
||||||
# - "{{ rsyncd_conf }}"
|
- "{{ rsyncd_conf }}"
|
||||||
# - rsyncd.conf.{{ inventory_hostname }}
|
- rsyncd.conf.{{ inventory_hostname }}
|
||||||
# - rsyncd.conf.{{ host_group }}
|
- rsyncd.conf.{{ host_group }}
|
||||||
# - rsyncd.conf.{{ rsync_group }}
|
- rsyncd.conf.{{ rsync_group }}
|
||||||
# - rsyncd.conf.default
|
- rsyncd.conf.default
|
||||||
# notify:
|
when: "'download' not in group_names"
|
||||||
# - restart xinetd
|
notify:
|
||||||
# tags:
|
- restart xinetd
|
||||||
# - config
|
tags:
|
||||||
# - rsyncd
|
- config
|
||||||
|
- rsyncd
|
||||||
|
|
||||||
- name: rsyncd.conf file
|
- name: rsyncd.conf file
|
||||||
template: src=rsyncd.conf.download.j2 dest=/etc/rsyncd.conf mode=0644
|
template: src=rsyncd.conf.download.j2 dest=/etc/rsyncd.conf mode=0644
|
||||||
notify:
|
notify:
|
||||||
- restart xinetd
|
- restart xinetd
|
||||||
|
when: "'download' in group_names"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- rsyncd
|
- rsyncd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue