mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update selective file sources example
This commit is contained in:
parent
ae810d3318
commit
4d8734f30c
1 changed files with 3 additions and 3 deletions
|
@ -13,13 +13,13 @@
|
||||||
first_available_file:
|
first_available_file:
|
||||||
|
|
||||||
# first see if we have a file for this specific host
|
# first see if we have a file for this specific host
|
||||||
- /srv/whatever/${ansible_hostname}.conf
|
- /srv/whatever/{{ansible_hostname}}.conf
|
||||||
|
|
||||||
# next try to load something like CentOS6.2.conf
|
# next try to load something like CentOS6.2.conf
|
||||||
- /srv/whatever/${ansible_distribution}${ansible_distribution_version}.conf
|
- /srv/whatever/{{ansible_distribution}}{{ansible_distribution_version}}.conf
|
||||||
|
|
||||||
# next see if there's a CentOS.conf
|
# next see if there's a CentOS.conf
|
||||||
- /srv/whatever/${ansible_distribution}.conf
|
- /srv/whatever/{{ansible_distribution}}.conf
|
||||||
|
|
||||||
# finally give up and just use something generic
|
# finally give up and just use something generic
|
||||||
- /srv/whatever/default
|
- /srv/whatever/default
|
||||||
|
|
Loading…
Reference in a new issue