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

16 lines
399 B
YAML
Raw Normal View History

2021-04-05 05:21:54 +00:00
---
- name: Install required dependency libsemanage-python
2023-08-31 01:29:05 +00:00
become: true
2021-04-05 05:21:54 +00:00
yum:
name: libsemanage-python
2023-08-31 01:29:05 +00:00
state: present
2021-04-05 05:21:54 +00:00
when: (ansible_distribution_major_version is version('7', '='))
- name: Install required dependency python3-policycoreutils
2023-08-31 01:29:05 +00:00
become: true
2021-04-05 05:21:54 +00:00
dnf:
name: python3-policycoreutils
2023-08-31 01:29:05 +00:00
state: present
2021-04-05 05:21:54 +00:00
when: (ansible_distribution_major_version is version('8', '>='))