ansible-role-tinc/templates/tinc.conf.j2

11 lines
407 B
Plaintext
Raw Permalink Normal View History

2020-07-18 21:41:21 +00:00
Name = {{ ansible_hostname | replace('-', '_') }}
2019-11-03 15:27:52 +00:00
{% if (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != 'Darwin' %}
Device = /dev/net/tun
{% elif ternary(override_os_family,ansible_os_family) == 'Darwin' %}
DeviceType = utun
2019-11-03 15:27:52 +00:00
{% endif %}
2020-07-18 21:41:21 +00:00
{% if ansible_hostname | replace('-', '_') != tinc_central_host %}
2019-11-03 15:27:52 +00:00
ConnectTo = {{ tinc_central_host }}
{% endif %}
AddressFamily = any