20 lines
345 B
Plaintext
20 lines
345 B
Plaintext
|
# Hosts file -- Don't edit manually!
|
||
|
#
|
||
|
# {{ ansible_managed }}
|
||
|
{% if hosts_entries|length != 0 %}
|
||
|
|
||
|
# Custom entries
|
||
|
{% for host in hosts_entries %}
|
||
|
{{ host.ip }} {{ host.name }} {{ host.aliases | default('') | join(' ') }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% if hosts_file_snippets %}
|
||
|
|
||
|
#
|
||
|
# Hosts file snippets
|
||
|
#
|
||
|
|
||
|
{{ hosts_file_snippets }}
|
||
|
|
||
|
{% endif %}
|