Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 3f418fa

Browse files
committed
fix Fedora support
Signed-off-by: Furragen <git@axk.io>
1 parent 0e10e6c commit 3f418fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/selinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
when:
1010
- ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'
1111
- ansible_distribution_major_version <= "7"
12+
- ansible_distribution != 'Fedora'
1213

1314
- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux 8
1415
package:
@@ -18,8 +19,7 @@
1819
- 'python3-policycoreutils'
1920
- 'checkpolicy'
2021
when:
21-
- ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'
22-
- ansible_distribution_major_version >= "8"
22+
- (ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux' and ansible_distribution_major_version >= "8") or ansible_distribution == 'Fedora'
2323

2424
- name: install selinux dependencies when selinux is installed on Debian or Ubuntu
2525
apt:

0 commit comments

Comments
 (0)