fix: Install yum-utils package

`yum-config-manager` is provided by the yum-utils package, thus, install
the package as the dependency before using `yum-config-manager`.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2023-10-03 16:06:13 -04:00 committed by Richard Megginson
parent 1801ae7870
commit 17922ca6f3

View file

@ -21,6 +21,12 @@
retries: 6
delay: 10
- name: Install yum-utils package
package:
state: present
name: yum-utils
when: ansible_distribution_major_version == '7'
- name: Enable EPEL 7
command: yum-config-manager --enable epel
when: ansible_distribution_major_version == '7'