# 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 %}