mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-25 06:37:37 +00:00
21 lines
460 B
YAML
21 lines
460 B
YAML
---
|
|
- block:
|
|
- include_tasks: network_scripts.yaml
|
|
|
|
when: network.network_scripts is defined
|
|
|
|
- block:
|
|
- name: Install NetworkManager-dispatcher-routing-rules
|
|
package:
|
|
name:
|
|
- NetworkManager-dispatcher-routing-rules
|
|
state: present
|
|
|
|
- name: Configure interfaces and routes with nmcli
|
|
include: network_manager.yaml iface={{ item }}
|
|
loop: "{{ network.network_manager.iface }}"
|
|
|
|
when: network.network_manager is defined
|
|
|
|
|