homeserver-iac/roles/networking/hosts/templates/hosts.j2
dogeystamp 0c8d18dcce
wireguard: use vpn for bastion-fleet comms
supposedly fleet will be more secure this way
2024-06-16 21:32:52 -04:00

14 lines
344 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"] %}
{% if wireguard_services %}
{{ hostvars[host]["vpn_ip"] }} {{ host }}
{% else %}
{{ hostvars[host]["local_ip"] }} {{ host }}
{% endif %}
{% endfor %}