system/templates/etc_hosts.j2

20 lines
345 B
Plaintext
Raw Normal View History

2021-07-18 09:39:52 +00:00
# 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 %}