convert first_available_files to with_first_found
This commit is contained in:
parent
3f9e197905
commit
3b507d55e2
2 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
- name: sshd_config
|
- name: sshd_config
|
||||||
action: copy src=$sshd_config dest=/etc/ssh/sshd_config mode=600
|
action: copy src=$sshd_config dest=/etc/ssh/sshd_config mode=600
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $sshd_config
|
- $sshd_config
|
||||||
- ${files}/ssh/sshd_config.${ansible_fqdn}
|
- ${files}/ssh/sshd_config.${ansible_fqdn}
|
||||||
- ${files}/ssh/sshd_config.${host_group}
|
- ${files}/ssh/sshd_config.${host_group}
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
- name: iptables
|
- name: iptables
|
||||||
action: template src=$item dest=/etc/sysconfig/iptables mode=600
|
action: template src=$item dest=/etc/sysconfig/iptables mode=600
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $iptables
|
- $iptables
|
||||||
- $files/iptables/iptables.${ansible_fqdn}
|
- $files/iptables/iptables.${ansible_fqdn}
|
||||||
- $files/iptables/iptables.${host_group}
|
- $files/iptables/iptables.${host_group}
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
# XXX fixme # a datacenter 'fact' from setup
|
# XXX fixme # a datacenter 'fact' from setup
|
||||||
- name: /etc/resolv.conf
|
- name: /etc/resolv.conf
|
||||||
action: copy src=$resolvconf dest=/etc/resolv.conf
|
action: copy src=$resolvconf dest=/etc/resolv.conf
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $resolvconf
|
- $resolvconf
|
||||||
- $files/resolv.conf/${ansible_fqdn}
|
- $files/resolv.conf/${ansible_fqdn}
|
||||||
- $files/resolv.conf/${host_group}
|
- $files/resolv.conf/${host_group}
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
|
|
||||||
- name: rsyslog.conf
|
- name: rsyslog.conf
|
||||||
action: copy src=$rsyslogconf dest=/etc/rsyslog.conf mode=644
|
action: copy src=$rsyslogconf dest=/etc/rsyslog.conf mode=644
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $rsyslogconf
|
- $rsyslogconf
|
||||||
- $files/rsyslog/rsyslog.conf.${ansible_fqdn}
|
- $files/rsyslog/rsyslog.conf.${ansible_fqdn}
|
||||||
- $files/rsyslog/rsyslog.conf.${host_group}
|
- $files/rsyslog/rsyslog.conf.${host_group}
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
- name: /etc/postfix/main.cf
|
- name: /etc/postfix/main.cf
|
||||||
action: copy src=$item dest=/etc/postfix/main.cf
|
action: copy src=$item dest=/etc/postfix/main.cf
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $postfix_maincf
|
- $postfix_maincf
|
||||||
- $files/postfix/main.cf.${ansible_fqdn}
|
- $files/postfix/main.cf.${ansible_fqdn}
|
||||||
- $files/postfix/main.cf.${host_group}
|
- $files/postfix/main.cf.${host_group}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- name: /etc/postfix/main.cf
|
- name: /etc/postfix/main.cf
|
||||||
action: copy src=$item dest=/etc/postfix/main.cf
|
action: copy src=$item dest=/etc/postfix/main.cf
|
||||||
first_available_file:
|
with_first_found:
|
||||||
- $postfix_maincf
|
- $postfix_maincf
|
||||||
- $files/postfix/main.cf.${ansible_fqdn}
|
- $files/postfix/main.cf.${ansible_fqdn}
|
||||||
- $files/postfix/main.cf.${inventory_hostname}
|
- $files/postfix/main.cf.${inventory_hostname}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue