Skip to content

Commit 13d5f86

Browse files
committed
Skip installing epel-release on CentOS/RHEL 8
It was only required on CentOS 7 for QEMU emulators.
1 parent 211b6e6 commit 13d5f86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/install-daemon.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
retries: 3
2222
become: True
2323

24-
# NOTE: QEMU emulators are available in EPEL.
24+
# NOTE: QEMU emulators are available in EPEL on CentOS 7.
2525
- name: Ensure the EPEL repository is enabled
2626
yum:
2727
name: epel-release
@@ -32,6 +32,7 @@
3232
become: True
3333
when:
3434
- ansible_facts.os_family == "RedHat"
35+
- ansible_facts.distribution_major_version | int == 7
3536
- libvirt_host_qemu_emulators | length > 0
3637

3738
- name: Ensure QEMU emulator packages are installed

0 commit comments

Comments
 (0)