self-hosting/roles/tinc/templates/tinc.conf.j2

11 lines
284 B
Text
Raw Normal View History

2018-09-18 04:00:12 +02:00
Name = {{ inventory_hostname }}
AddressFamily = ipv4
Interface = {{ vpn_interface }}
Mode = switch
{% for host in play_hosts | sort %}
2018-09-18 04:00:12 +02:00
{% if inventory_hostname != hostvars[host]['inventory_hostname'] %}
ConnectTo = {{ hostvars[host]['inventory_hostname'] }}
{% endif %}
{% endfor %}