diff --git a/roles/base/templates/ifcfg.j2 b/roles/base/templates/ifcfg.j2 index 749847624d..e15ac18fe1 100644 --- a/roles/base/templates/ifcfg.j2 +++ b/roles/base/templates/ifcfg.j2 @@ -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"