mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
some networks will have multiple gateways
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user