diff --git a/tasks/haproxy_service_config.yml b/tasks/haproxy_service_config.yml index 1754f64..3e7a1ee 100644 --- a/tasks/haproxy_service_config.yml +++ b/tasks/haproxy_service_config.yml @@ -39,3 +39,5 @@ - Restart haproxy when: - ansible_pkg_mgr == 'yum' + - ansible_selinux.status is defined + - ansible_selinux.status == "enabled"