[FIX] hostname should not have hyphens
This commit is contained in:
parent
3e9ece5237
commit
c4e3a9e407
4 changed files with 9 additions and 9 deletions
|
|
@ -1,8 +1,8 @@
|
|||
Name = {{ ansible_hostname }}
|
||||
Name = {{ ansible_hostname | replace('-', '_') }}
|
||||
{% if (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != 'Darwin' %}
|
||||
Device = /dev/net/tun
|
||||
{% endif %}
|
||||
{% if ansible_hostname != tinc_central_host %}
|
||||
{% if ansible_hostname | replace('-', '_') != tinc_central_host %}
|
||||
ConnectTo = {{ tinc_central_host }}
|
||||
{% endif %}
|
||||
AddressFamily = any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue