ifstated: Fix typo from hostnames

This commit is contained in:
Timo Makinen 2025-06-18 10:20:34 +00:00
parent 02cddddc5c
commit a8e47bbbb5

View file

@ -38,9 +38,9 @@ state backup {
run "/sbin/route -qn add default 172.20.21.2"
{% elif inventory_hostname == "dna-gw02.home.foo.sh" %}
run "/sbin/route -qn add default 172.20.21.1"
{% elif inventory_hostname == "dna-gw03.home.lan.foo.sh" %}
{% elif inventory_hostname == "dna-gw03.lan.foo.sh" %}
run "/sbin/route -qn add default 172.20.30.3"
{% elif inventory_hostname == "dna-gw04.home.lan.foo.sh" %}
{% elif inventory_hostname == "dna-gw04.lan.foo.sh" %}
run "/sbin/route -qn add default 172.20.30.2"
{% endif %}
}