[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,14 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
{% if ansible_hostname == 'hetzner-01' %}
|
||||
{% if ansible_facts['hostname'] == 'hetzner-01' %}
|
||||
/sbin/ifconfig $INTERFACE down
|
||||
/usr/sbin/ip rule del to {{ tinc_remote_nets[0].net_cidr }} table 5
|
||||
|
||||
{% elif ansible_hostname == 'RaspiBeyerstedt' %}
|
||||
{% elif ansible_facts['hostname'] == 'RaspiBeyerstedt' %}
|
||||
/sbin/ifconfig $INTERFACE down
|
||||
/bin/ip route del {{ tinc_remote_nets[0].net_cidr }} dev eth0
|
||||
|
||||
{% elif ansible_os_family == 'Darwin' %}
|
||||
{% elif ansible_facts['os_family'] == 'Darwin' %}
|
||||
/sbin/ifconfig $INTERFACE down
|
||||
/sbin/route -n delete -net {{ tinc_remote_nets[0].net_cidr }} {{ tinc_remote_nets[0].gateway }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue