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: