homeserver-iac/roles/networking/hosts/templates/hosts.j2

10 lines
252 B
Plaintext
Raw Normal View History

2023-08-23 17:54:55 -04:00
# 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"] %}
{{ host_vars[host]["local_ip"] }} {{ host }}
{% endfor %}