Add debian common role
This commit is contained in:
14
common-debian/templates/etc/hosts.j2
Normal file
14
common-debian/templates/etc/hosts.j2
Normal file
@ -0,0 +1,14 @@
|
||||
# Local system hosts file
|
||||
# {{ ansible_managed }}
|
||||
|
||||
127.0.0.1 localhost
|
||||
::1 ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allmodes
|
||||
ff02::2 ip6-allrouters
|
||||
|
||||
{% if hosts_entries is defined %}
|
||||
{% for host in hosts_entries %}
|
||||
{{ host.ip }}{% for name in host.names %} {{ name }}{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user