Fix openvswitch deployment for RHEL

This commit is contained in:
Adrien Reslinger 2024-01-08 19:10:02 +01:00
parent a3178a57e2
commit 5b5323a518
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 29 additions and 21 deletions

View file

@ -5,13 +5,13 @@
- name: Include tasks for {{ ansible_os_family }}
include_tasks: "{{ ansible_os_family }}.yml"
- name: install packages
- name: Install OpenVSwith packages
package:
name: "{{ openvswitch_packages }}"
state: present
update_cache: yes
when:
ansible_os_family != "RedHat"
# when:
# ansible_os_family != "RedHat"
notify: Restart openvswitch
- name: Enable openvswitch