If a host has no specific hosts file in ansible, make it an empty one

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-12-15 01:21:26 +00:00
parent 24c15796b9
commit 4ac18d2200
2 changed files with 3 additions and 0 deletions

2
roles/hosts/files/base Normal file
View file

@ -0,0 +1,2 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

View file

@ -18,6 +18,7 @@
- "{{ host_group }}-hosts"
- "{{ ansible_domain }}-hosts"
- "{{ datacenter }}-hosts"
- "base"
skip: true
tags:
- config