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

11 lines
443 B
Text
Raw Normal View History

Name = {{ ansible_facts['hostname'] | replace('-', '_') }}
{% if (override_os_family is defined) | ternary(override_os_family,ansible_facts['os_family']) != 'Darwin' %}
2019-11-03 16:27:52 +01:00
Device = /dev/net/tun
{% elif ternary(override_os_family,ansible_facts['os_family']) == 'Darwin' %}
DeviceType = utun
2019-11-03 16:27:52 +01:00
{% endif %}
{% if ansible_facts['hostname'] | replace('-', '_') != tinc_central_host %}
2019-11-03 16:27:52 +01:00
ConnectTo = {{ tinc_central_host }}
{% endif %}
AddressFamily = any