Rename gw01.home.foo.sh to dna-gw01.home.foo.sh

This commit is contained in:
Timo Makinen 2021-04-23 08:48:46 +00:00
parent d2cbea9354
commit 9f86ecc099
5 changed files with 4 additions and 4 deletions

View file

@ -37,9 +37,9 @@ state backup {
run "/sbin/ifconfig vio1 delete lladdr {{ gw_home_mac }} down"
# flush routes and fix default route
run "/sbin/route -qn flush"
{% if inventory_hostname == "gw01.home.foo.sh" %}
{% if inventory_hostname == "dna-gw01.home.foo.sh" %}
run "/sbin/route -qn add default 172.20.21.2"
{% elif inventory_hostname == "gw02.home.foo.sh" %}
{% elif inventory_hostname == "dna-gw02.home.foo.sh" %}
run "/sbin/route -qn add default 172.20.21.1"
{% endif %}
}