Update RedHat family deployment
This commit is contained in:
parent
b534f067ce
commit
1fdf1545b7
3 changed files with 33 additions and 29 deletions
|
|
@ -1,18 +1,18 @@
|
|||
---
|
||||
- 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 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 }}"
|
||||
|
|
@ -21,12 +21,12 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- etc/yum.repos.d/CentOS-9-Stream-NFV-OpenvSwitch.repo
|
||||
- etc/yum.repos.d/CentOS-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'
|
||||
- ansible_distribution_major_version >= '8'
|
||||
- name: Install CentOS NFV Openvswitch Repository RPM
|
||||
ansible.builtin.package:
|
||||
name: centos-release-nfv-openvswitch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue