deploy-base/roles/hardening/tasks/centos-selinux.yml

13 lines
367 B
YAML

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