2021-10-26 21:34:13 +00:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Install network scripts
|
|
|
|
package:
|
|
|
|
name: network-scripts
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- include_tasks: network_scripts.yaml
|
|
|
|
|
|
|
|
when: network.network_scripts is defined
|
|
|
|
|
2021-10-27 13:49:17 +00:00
|
|
|
- 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
|
|
|
|
|
2021-10-26 21:34:13 +00:00
|
|
|
- name: Configure interfaces and routes with nmcli
|
|
|
|
include: network_manager.yaml iface={{ item }}
|
|
|
|
when: network.network_manager is defined
|
|
|
|
loop: "{{ network.network_manager.iface }}"
|