10 lines
443 B
Django/Jinja
10 lines
443 B
Django/Jinja
Name = {{ ansible_facts['hostname'] | replace('-', '_') }}
|
|
{% if (override_os_family is defined) | ternary(override_os_family,ansible_facts['os_family']) != 'Darwin' %}
|
|
Device = /dev/net/tun
|
|
{% elif ternary(override_os_family,ansible_facts['os_family']) == 'Darwin' %}
|
|
DeviceType = utun
|
|
{% endif %}
|
|
{% if ansible_facts['hostname'] | replace('-', '_') != tinc_central_host %}
|
|
ConnectTo = {{ tinc_central_host }}
|
|
{% endif %}
|
|
AddressFamily = any
|