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 <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2022-02-20 19:42:52 -05:00 committed by Till Maas
parent a029152e16
commit 61423ed36f
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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