# {{ ansible_managed }}
Name = {{ tinc_hostname }}
{% if (tinc_device_tap is defined) and (os_name == "FreeBSD") %}
Device = {{ tinc_device_tap }}
{% endif %}
Mode = switch
{% if tinc_af is defined %}
AddressFamily = {{ tinc_af }}
{% endif %}
{% if tinc_port is defined %}
Port = {{ tinc_port }}
{% endif %}
{% if tinc_bindtoaddresses is defined %}{% for _bindtoaddress in tinc_bindtoaddresses %}
BindToAddress = {{ _bindtoaddress }}
{% endfor %}{% endif %}
{% if tinc_maxtimeout is defined %}
MaxTimeout = {{ tinc_maxtimeout }}
{% endif %}
{% if tinc_pingtimeout is defined %}
PingTimeout = {{ tinc_pingtimeout }}
{% endif %}
GraphDumpFile = /var/run/tinc.{{ tinc_name }}.dot
{% if _connecthosts is defined %}{% for _connecthost in _connecthosts %}
{% if _connecthost != tinc_hostname %}
ConnectTo = {{ _connecthost }}
{% endif %}
{% endfor %}{% endif %}
