From 61423ed36fc6da6dbe8321912e896c59a2d8e2f6 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Sun, 20 Feb 2022 19:42:52 -0500 Subject: [PATCH] Fix hostapd package installation error The hostapd package was moved from EPEL to CentOS Stream and therefore is not available anymore on EPEL, which made the installation failed. To fix it, install the hostapd via CentOS Stream in order to run managed host testing in RHEL-8.5. Signed-off-by: Wen Liang --- .yamllint.yml | 1 + tests/tasks/setup_802_1x_server.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.yamllint.yml b/.yamllint.yml index 16ce93f..489facb 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -33,3 +33,4 @@ rules: /tests/tests_wireless_wpa3_sae_nm.yml /tests/tests_eth_pci_address_match_nm.yml /tests/playbooks/tests_eth_pci_address_match.yml + /tests/tasks/setup_802_1x_server.yml diff --git a/tests/tasks/setup_802_1x_server.yml b/tests/tasks/setup_802_1x_server.yml index 7687913..34b530f 100644 --- a/tests/tasks/setup_802_1x_server.yml +++ b/tests/tasks/setup_802_1x_server.yml @@ -1,5 +1,13 @@ # SPDX-License-Identifier: BSD-3-Clause --- +# 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 + when: + - ansible_distribution_version | float < 8.6 + - ansible_distribution_major_version == '8' + - ansible_distribution == 'RedHat' + - name: Install hostapd package: name: hostapd