mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-24 22:36:38 +00:00
26 lines
583 B
YAML
26 lines
583 B
YAML
---
|
|
- block:
|
|
- name: Install network scripts
|
|
package:
|
|
name: network-scripts
|
|
state: present
|
|
|
|
- include_tasks: network_scripts.yaml
|
|
|
|
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
|
|
include: network_manager.yaml iface={{ item }}
|
|
when: network.network_manager is defined
|
|
loop: "{{ network.network_manager.iface }}"
|