[TIDY] Move to ansible_facts dict instead of injected variables
This commit is contained in:
parent
cdd9bc58d2
commit
ccf581edaa
6 changed files with 20 additions and 20 deletions
|
|
@ -1,10 +1,10 @@
|
|||
Name = {{ ansible_hostname | replace('-', '_') }}
|
||||
{% if (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != 'Darwin' %}
|
||||
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_os_family) == 'Darwin' %}
|
||||
{% elif ternary(override_os_family,ansible_facts['os_family']) == 'Darwin' %}
|
||||
DeviceType = utun
|
||||
{% endif %}
|
||||
{% if ansible_hostname | replace('-', '_') != tinc_central_host %}
|
||||
{% if ansible_facts['hostname'] | replace('-', '_') != tinc_central_host %}
|
||||
ConnectTo = {{ tinc_central_host }}
|
||||
{% endif %}
|
||||
AddressFamily = any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue