Try this to skip if there's no special hosts files for the host.
This commit is contained in:
parent
a47df5c94c
commit
666ad15d7a
1 changed files with 3 additions and 6 deletions
|
@ -9,13 +9,10 @@
|
||||||
# This will move a /etc/hosts in place if it's setup in files for that host/domain
|
# This will move a /etc/hosts in place if it's setup in files for that host/domain
|
||||||
# Note that if it's not set it will just skip this play and do nothing.
|
# Note that if it's not set it will just skip this play and do nothing.
|
||||||
#
|
#
|
||||||
- name: setup /etc/hosts for client use
|
- name: setup /etc/hosts for some clients
|
||||||
action: copy src=$item dest=/etc/hosts
|
action: copy src=$item dest=/etc/hosts
|
||||||
with_first_found:
|
with_first_found:
|
||||||
- $files/hosts/${ansible_fqdn}-hosts
|
- files: $files/hosts/{{ ansible_fqdn }}-hosts $files/hosts/{{ ansible_hostname }}-hosts $files/hosts/{{ ansible_domain }}-hosts
|
||||||
- $files/hosts/${ansible_hostname}-hosts
|
skip: true
|
||||||
- $files/hosts/${ansible_domain}-hosts
|
|
||||||
# once upstream lets us skip on no match
|
|
||||||
# skip: true
|
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue