network/tasks/RedHat/7.yaml

21 lines
460 B
YAML
Raw Normal View History

2021-10-26 21:34:13 +00:00
---
- 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