This commit is contained in:
ace 2021-10-27 16:49:17 +03:00
parent f24bd4333c
commit 0694f3649e
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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 }}