diff --git a/roles/haproxy/tasks/package.yml b/roles/haproxy/tasks/package.yml index 53846a2..09f1e52 100644 --- a/roles/haproxy/tasks/package.yml +++ b/roles/haproxy/tasks/package.yml @@ -13,6 +13,13 @@ - restart haproxy when: haproxy_config is defined + - name: set haproxy_connect_any flag on and keep it persistent across reboots + ansible.posix.seboolean: + name: haproxy_connect_any + state: yes + persistent: yes + when: ansible_selinux is defined and ansible_selinux != False and ansible_selinux.status == 'enabled' + - name: start haproxy service systemd: name: haproxy