From 8a0e3a8e4ea82b494ed475760753494456dd2187 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Fri, 27 Mar 2026 19:08:21 +0100 Subject: [PATCH] tests: Enable EPEL on EL 7 to install hostapd Signed-off-by: Sergei Petrosian --- tests/tasks/el_repo_setup.yml | 13 +++++++++++++ tests/tasks/setup_802_1x_server.yml | 9 --------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/tasks/el_repo_setup.yml b/tests/tasks/el_repo_setup.yml index 1f15d78..7fda661 100644 --- a/tests/tasks/el_repo_setup.yml +++ b/tests/tasks/el_repo_setup.yml @@ -50,3 +50,16 @@ when: - ansible_facts['distribution'] == 'CentOS' - ansible_facts['distribution_major_version'] == '6' + +- name: Setup epel on EL 7 + when: + - ansible_facts['distribution'] == 'CentOS' + - ansible_facts['distribution_major_version'] == '7' + yum_repository: + name: epel + description: Extra Packages for Enterprise Linux 7 + baseurl: https://archives.fedoraproject.org/pub/archive/epel/{{ ansible_facts['distribution_major_version'] }}/{{ ansible_facts['architecture'] }}/ + gpgcheck: 0 + enabled: 1 + skip_if_unavailable: 1 + state: present diff --git a/tests/tasks/setup_802_1x_server.yml b/tests/tasks/setup_802_1x_server.yml index 550a29c..60b9bd4 100644 --- a/tests/tasks/setup_802_1x_server.yml +++ b/tests/tasks/setup_802_1x_server.yml @@ -4,15 +4,6 @@ debug: msg: facts {{ ansible_facts | to_nice_json }} -# This task can be removed once the RHEL-8.5 is not tested anymore -- name: Install hostapd via CentOS Stream - command: dnf -y install http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/hostapd-2.10-1.el8.x86_64.rpm # noqa yaml[line-length] - when: - - ansible_facts['distribution_version'] is version('8.6', '<') - - ansible_facts['distribution_major_version'] == '8' - - ansible_facts['distribution'] == 'RedHat' - changed_when: false - - name: Install hostapd package: name: hostapd