Fix EPEL for OracleLinux + Add tcp_wrappers on EL8

This commit is contained in:
Adrien Reslinger 2021-04-13 18:08:06 +02:00
parent e6466839ea
commit 0db0707af4
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 15 additions and 1 deletions

View file

@ -22,6 +22,19 @@
- epel-release - epel-release
when: when:
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- not ansible_distribution == "OracleLinux"
- not ansible_machine == "armv7l"
- not ansible_machine == "armv6l"
- name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform
package:
name: "{{ item }}"
update_cache: yes
state: present
with_items:
- oracle-epel-release-el8
when:
- ansible_distribution == "OracleLinux"
- not ansible_machine == "armv7l" - not ansible_machine == "armv7l"
- not ansible_machine == "armv6l" - not ansible_machine == "armv6l"
@ -156,6 +169,6 @@
- not hostsallow.stat.exists - not hostsallow.stat.exists
when: when:
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- ansible_distribution_major_version < '8' # - ansible_distribution_major_version < '8'
tags: tags:
- base - base

View file

@ -24,6 +24,7 @@ base_packages:
- wget - wget
- xz - xz
- dnf-automatic - dnf-automatic
- tcp_wrappers
base_packages_servers: base_packages_servers:
- "@^minimal-environment" - "@^minimal-environment"