Playbook - configure_network¶
Warning
When the edpm_network_config_tool is set to ‘os-net-config’, the ctlplane_gateway_ip and ctlplane_ip variables must be set on the host for the playbook to function properly.
Calls edpm_network_config role to set up network. Uses value of the edpm_network_config_tool variable to determine which tool to use. The ‘nmstate’ value will leave the process to the systemroles.network role, while the ‘os-net-config’ will import custom tasks using os-net-config.
---
- name: Deploy EDPM Network
hosts: "{{ edpm_override_hosts | default('all', true) }}"
strategy: linear
gather_facts: "{{ gather_facts | default(false) }}"
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Import edpm_ovs to install ovs packages
ansible.builtin.import_role:
name: osp.edpm.edpm_ovs
tags:
- edpm_ovs
# Sets up network using OVS
- name: Import edpm_network_config
ansible.builtin.import_role:
name: osp.edpm.edpm_network_config
tags:
- edpm_network_config