mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2025-04-06 06:01:58 +00:00
fix routing update
This commit is contained in:
parent
297cafb6de
commit
c49538dcec
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Up interface
|
- name: Up interface
|
||||||
shell: |
|
shell: |
|
||||||
ifup {{ item.name }}
|
ifdown {{ item.name }} ; ifup {{ item.name }}
|
||||||
loop: "{{ network.network_scripts.iface }}"
|
loop: "{{ network.network_scripts.iface }}"
|
||||||
|
|
||||||
- name: Reload interface with nmcli
|
- name: Reload interface with nmcli
|
||||||
|
@ -42,13 +42,12 @@
|
|||||||
gw6: "{{ iface.gw6 | default(omit) }}"
|
gw6: "{{ iface.gw6 | default(omit) }}"
|
||||||
never_default4: "{{ iface.never_default4 | default('yes') }}"
|
never_default4: "{{ iface.never_default4 | default('yes') }}"
|
||||||
vlanid: "{{ iface.vlanid | default(omit) }}"
|
vlanid: "{{ iface.vlanid | default(omit) }}"
|
||||||
routes4: "{{ iface.routes4 | default(omit) }}"
|
routes4: "{{ omit if existing_routes4 != new_routes4 else iface.routes4 }}"
|
||||||
routing_rules4: "{{ iface.routing_rules4 | default(omit) }}"
|
routing_rules4: "{{ iface.routing_rules4 | default(omit) }}"
|
||||||
routes6: "{{ iface.routes6 | default(omit) }}"
|
routes6: "{{ iface.routes6 | default(omit) }}"
|
||||||
routing_rules6: "{{ iface.routing_rules6 | default(omit) }}"
|
routing_rules6: "{{ iface.routing_rules6 | default(omit) }}"
|
||||||
mtu: "{{ iface.mtu | default(0) }}"
|
mtu: "{{ iface.mtu | default(0) }}"
|
||||||
zone: "{{ iface.zone | default(omit) }}"
|
zone: "{{ iface.zone | default(omit) }}"
|
||||||
state: present
|
state: present
|
||||||
when: existing_routes4 != new_routes4
|
|
||||||
notify:
|
notify:
|
||||||
- Reload interface with nmcli
|
- Reload interface with nmcli
|
||||||
|
Loading…
x
Reference in New Issue
Block a user