hardening: +centos/fedora task files

This commit is contained in:
Josh Lay 2021-04-05 00:21:54 -05:00
parent 0c3c602b5e
commit 877cff8d0c
2 changed files with 26 additions and 0 deletions

View 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', '>='))

View 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', '<='))