base ifcfg template: fix logic, we need a elif not if there

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-28 16:56:15 -07:00
parent d0fd4a2e16
commit 1d5d09a6fc

View file

@ -8,9 +8,9 @@ OPTIONS="layer2=1 portno=0"
{% endif %}
{% if item in ansible_ifcfg_infra_net_devices %}
GATEWAY="{{gw}}"
{% if hostvars[inventory_hostname].datacenter == 'phx2' %}
{% if hostvars[inventory_hostname].datacenter == 'phx2' %}
DOMAIN="phx2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
{% if hostvars[inventory_hostname].datacenter == 'iad2' %}
{% elif hostvars[inventory_hostname].datacenter == 'iad2' %}
DOMAIN="iad2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
{% else %}
DOMAIN="vpn.fedoraproject.org fedoraproject.org"