fix selinux for haproxy
This commit is contained in:
parent
5a980d28ad
commit
c16ab291dd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user