network/tasks/RedHat/7.yaml
2021-10-27 00:34:13 +03:00

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