mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-25 06:37:37 +00:00
update
This commit is contained in:
parent
f24bd4333c
commit
0694f3649e
@ -9,6 +9,16 @@
|
|||||||
|
|
||||||
when: network.network_scripts is defined
|
when: network.network_scripts is defined
|
||||||
|
|
||||||
|
- name: Set blank routes symbol
|
||||||
|
command: echo -n
|
||||||
|
register: echo
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Create array for interfaces to reload
|
||||||
|
set_fact:
|
||||||
|
reload_interfaces: []
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Configure interfaces and routes with nmcli
|
- name: Configure interfaces and routes with nmcli
|
||||||
include: network_manager.yaml iface={{ item }}
|
include: network_manager.yaml iface={{ item }}
|
||||||
when: network.network_manager is defined
|
when: network.network_manager is defined
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
state: present
|
state: present
|
||||||
notify:
|
notify:
|
||||||
- Reload interface with nmcli
|
- Reload interface with nmcli
|
||||||
|
set_fact:
|
||||||
|
reload_interfaces: "{{ reload_interfaces + iface.conn_name }}"
|
||||||
|
|
||||||
- name: Get existing ipv4 routes
|
- name: Get existing ipv4 routes
|
||||||
shell: nmcli -g ipv4.routes connection show {{ iface.conn_name }}
|
shell: nmcli -g ipv4.routes connection show {{ iface.conn_name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user