homeserver-iac/roles/networking/hosts/templates/hosts.j2
2023-08-26 22:02:29 -04:00

10 lines
251 B
Django/Jinja

# Static table lookup for hostnames.
# See hosts(5) for details.
# This file (/etc/hosts) is automatically generated via Ansible.
# Modifications will be lost!
{% for host in groups["all"] %}
{{ hostvars[host]["local_ip"] }} {{ host }}
{% endfor %}