diff --git a/tasks/prerequisites/setup-selinux.yml b/tasks/prerequisites/setup-selinux.yml index 60937bae..b6c0fc20 100644 --- a/tasks/prerequisites/setup-selinux.yml +++ b/tasks/prerequisites/setup-selinux.yml @@ -4,6 +4,7 @@ name: - libselinux-utils - policycoreutils + - policycoreutils-python-utils - selinux-policy-targeted when: ansible_facts['os_family'] == "RedHat" @@ -11,7 +12,9 @@ ansible.posix.selinux: state: permissive policy: targeted - when: not (ansible_check_mode and nginx_config_selinux_enforcing) + when: + - not ansible_check_mode + - not nginx_config_selinux_enforcing - name: Allow SELinux HTTP network connections ansible.posix.seboolean: