fix the ipv4_gw issue
This commit is contained in:
parent
f73b4ce9ca
commit
305bd6af2f
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ OPTIONS="layer2=1 portno=0"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item in ansible_ifcfg_infra_net_devices %}
|
{% if item in ansible_ifcfg_infra_net_devices %}
|
||||||
DEFROUTE=yes
|
DEFROUTE=yes
|
||||||
{% if hostvars[inventory_hostname][item +'_gw'] is defined %}
|
{% if hostvars[inventory_hostname][item +'ipv4_gw'] is defined %}
|
||||||
GATEWAY="{{ hostvars[inventory_hostname][item + '_gw'] }}"
|
GATEWAY="{{ hostvars[inventory_hostname][item + 'ipv4_gw'] }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
GATEWAY="{{ gw }}"
|
GATEWAY="{{ gw }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue