fix selinux for haproxy

This commit is contained in:
ace 2024-06-16 17:39:10 +03:00
parent 5a980d28ad
commit c16ab291dd
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -13,6 +13,13 @@
- restart haproxy - restart haproxy
when: haproxy_config is defined 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 - name: start haproxy service
systemd: systemd:
name: haproxy name: haproxy