From 22b62f1148e937ebbca7c1494053cfad7211e84c Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Wed, 8 Jul 2020 16:46:16 +0200 Subject: [PATCH] fix-missing-semanage --- tasks/selinux.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/selinux.yml b/tasks/selinux.yml index c6a06b2..3911d5d 100644 --- a/tasks/selinux.yml +++ b/tasks/selinux.yml @@ -1,4 +1,15 @@ --- +- name: Ensure libsemanage is present + package: + name: libsemanage-python + state: present + when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7" + +- name: Ensure libsemanage is present + package: + name: python3-libsemanage + state: present + when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "8" - name: SELinux task block for certbot_well_known_root block: