self-hosting/roles/tinc/templates/tinc.conf.j2
2018-09-26 19:24:36 +02:00

10 lines
284 B
Django/Jinja

Name = {{ inventory_hostname }}
AddressFamily = ipv4
Interface = {{ vpn_interface }}
Mode = switch
{% for host in play_hosts | sort %}
{% if inventory_hostname != hostvars[host]['inventory_hostname'] %}
ConnectTo = {{ hostvars[host]['inventory_hostname'] }}
{% endif %}
{% endfor %}