diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2016-12-15 01:21:26 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2016-12-15 01:21:26 +0000 |
| commit | 4ac18d220037133c81fcf139a92a381dadd8defd (patch) | |
| tree | 993783ba9ef48fc82b9a20d9ad2709c6c5caabf8 /roles/hosts | |
| parent | 24c15796b9b4d7958724ca18b8ecac7c8109e967 (diff) | |
| download | ansible-4ac18d220037133c81fcf139a92a381dadd8defd.tar.gz ansible-4ac18d220037133c81fcf139a92a381dadd8defd.tar.xz ansible-4ac18d220037133c81fcf139a92a381dadd8defd.zip | |
If a host has no specific hosts file in ansible, make it an empty one
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/hosts')
| -rw-r--r-- | roles/hosts/files/base | 2 | ||||
| -rw-r--r-- | roles/hosts/tasks/main.yml | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/roles/hosts/files/base b/roles/hosts/files/base new file mode 100644 index 000000000..849c10d45 --- /dev/null +++ b/roles/hosts/files/base @@ -0,0 +1,2 @@ +127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 +::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 diff --git a/roles/hosts/tasks/main.yml b/roles/hosts/tasks/main.yml index 2d2843f75..36d382f45 100644 --- a/roles/hosts/tasks/main.yml +++ b/roles/hosts/tasks/main.yml @@ -18,6 +18,7 @@ - "{{ host_group }}-hosts" - "{{ ansible_domain }}-hosts" - "{{ datacenter }}-hosts" + - "base" skip: true tags: - config |
