some networks will have multiple gateways
This commit is contained in:
parent
2e31f43080
commit
f73b4ce9ca
1 changed files with 4 additions and 0 deletions
|
@ -8,8 +8,12 @@ OPTIONS="layer2=1 portno=0"
|
|||
{% endif %}
|
||||
{% if item in ansible_ifcfg_infra_net_devices %}
|
||||
DEFROUTE=yes
|
||||
{% if hostvars[inventory_hostname][item +'_gw'] is defined %}
|
||||
GATEWAY="{{ hostvars[inventory_hostname][item + '_gw'] }}"
|
||||
{% else %}
|
||||
GATEWAY="{{ gw }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if hostvars[inventory_hostname].datacenter == 'iad2' %}
|
||||
DOMAIN="iad2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue