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

RHEL/OL/CentOS 8 support #242

Merged
merged 1 commit into from
Oct 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 2 additions & 12 deletions tasks/selinux.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
---
- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux
- name: install selinux dependencies when selinux is installed
package:
name: '{{ item }}'
name: '{{ ssh_selinux_packages }}'
state: present
with_items:
- 'policycoreutils-python'
- 'checkpolicy'
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'

- name: install selinux dependencies when selinux is installed on Debian or Ubuntu
apt:
name: ['policycoreutils', 'checkpolicy']
state: present
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: "authorize {{ ssh_server_ports }} ports for selinux"
seport:
Expand Down
3 changes: 3 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
sshd_service_name: ssh
ssh_owner: root
ssh_group: root
ssh_selinux_packages:
- policycoreutils-python
- checkpolicy
6 changes: 6 additions & 0 deletions vars/Fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sshd_service_name: sshd
ssh_owner: root
ssh_group: root
ssh_selinux_packages:
- python3-policycoreutils
- checkpolicy
3 changes: 3 additions & 0 deletions vars/Oracle Linux.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
sshd_service_name: sshd
ssh_owner: root
ssh_group: root
ssh_selinux_packages:
- policycoreutils-python
- checkpolicy
3 changes: 3 additions & 0 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
sshd_service_name: sshd
ssh_owner: root
ssh_group: root
ssh_selinux_packages:
- policycoreutils-python
- checkpolicy
6 changes: 6 additions & 0 deletions vars/RedHat_8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sshd_service_name: sshd
ssh_owner: root
ssh_group: root
ssh_selinux_packages:
- python3-policycoreutils
- checkpolicy