ansible-role-openvswitch/tasks/RedHat.yml
Adrien Reslinger b534f067ce
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Update for el9
2022-10-23 13:59:49 +02:00

54 lines
1.6 KiB
YAML

---
- name: Install RockyLinux NFV Openvswitch Repository
copy:
src: "{{ item }}"
dest: "/{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- etc/yum.repos.d/RockyLinux-NFV-OpenvSwitch.repo
- etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
when:
# - ansible_distribution == "OracleLinux"
- ansible_distribution != "CentOS"
- ansible_distribution_major_version == '8'
- name: Install CentOS Stream NFV Openvswitch Repository
copy:
src: "{{ item }}"
dest: "/{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- etc/yum.repos.d/CentOS-9-Stream-NFV-OpenvSwitch.repo
- etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
when:
# - ansible_distribution == "OracleLinux"
- ansible_distribution != "CentOS"
- ansible_distribution_major_version == '9'
- name: Install CentOS NFV Openvswitch Repository RPM
ansible.builtin.package:
name: centos-release-nfv-openvswitch
state: present
when:
- ansible_distribution == "CentOS"
#- name: Enable a Fast Datapath RHSM repository
# community.general.rhsm_repository:
# name: "fast-datapath-for-rhel-8-{{ ansible_architecture }}-rpms"
# when:
# - ansible_distribution == "RedHat"
# - ansible_distribution_major_version == '8'
- name: Install OpenvSwitch
ansible.builtin.package:
name:
- openvswitch2.17
- openvswitch2.17-ipsec
- openvswitch-selinux-extra-policy
- python3-openvswitch2.17
- NetworkManager-ovs
# - network-scripts-openvswitch2.16
state: present
# update_cache: yes
# when:
# - (ansible_distribution == "OracleLinux") or (ansible_distribution == "CentOS")