mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-25 06:37:37 +00:00
28 lines
701 B
YAML
28 lines
701 B
YAML
---
|
|
- block:
|
|
- name: Create routing table in rt_tables
|
|
template:
|
|
src: rt_tables.j2
|
|
dest: /etc/iproute2/rt_tables
|
|
|
|
- name: Configure interfaces and routes with network-scripts
|
|
include: network_scripts.yaml iface={{ item }}
|
|
loop: "{{ network.network_scripts.iface }}"
|
|
|
|
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
|
|
|
|
|