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

Commit

Permalink
RHEL/OL/CentOS 8 support
Browse files Browse the repository at this point in the history
Signed-off-by: Furragen <git@axk.io>
  • Loading branch information
Furragen committed Oct 1, 2019
1 parent ba457ee commit 1797e93
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tasks/selinux.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
---
- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux
- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux 7
package:
name: '{{ item }}'
state: present
with_items:
- 'policycoreutils-python'
- 'checkpolicy'
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'
when:
- ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'
- ansible_distribution_major_version <= "7"

- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux 8
package:
name: '{{ item }}'
state: present
with_items:
- 'python3-policycoreutils'
- 'checkpolicy'
when:
- ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'
- ansible_distribution_major_version >= "8"

- name: install selinux dependencies when selinux is installed on Debian or Ubuntu
apt:
Expand Down

0 comments on commit 1797e93

Please sign in to comment.