hardening: +centos/fedora task files
This commit is contained in:
parent
0c3c602b5e
commit
877cff8d0c
2 changed files with 26 additions and 0 deletions
13
roles/hardening/tasks/centos-selinux.yml
Normal file
13
roles/hardening/tasks/centos-selinux.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install required dependency libsemanage-python
|
||||||
|
yum:
|
||||||
|
name: libsemanage-python
|
||||||
|
state: latest
|
||||||
|
when: (ansible_distribution_major_version is version('7', '='))
|
||||||
|
|
||||||
|
- name: Install required dependency python3-policycoreutils
|
||||||
|
dnf:
|
||||||
|
name: python3-policycoreutils
|
||||||
|
state: latest
|
||||||
|
when: (ansible_distribution_major_version is version('8', '>='))
|
13
roles/hardening/tasks/fedora-selinux.yml
Normal file
13
roles/hardening/tasks/fedora-selinux.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install required dependency python3-libsemanage
|
||||||
|
dnf:
|
||||||
|
name: python3-libsemanage
|
||||||
|
state: latest
|
||||||
|
when: (ansible_distribution_major_version is version('31', '>='))
|
||||||
|
|
||||||
|
- name: Install required dependency libsemanage-python
|
||||||
|
dnf:
|
||||||
|
name: libsemanage-python
|
||||||
|
state: latest
|
||||||
|
when: (ansible_distribution_major_version is version('30', '<='))
|
Loading…
Reference in a new issue