Merge "Move selinux fix to haproxy_post_install.yml"

This commit is contained in:
Zuul 2023-02-21 23:12:39 +00:00 committed by Gerrit Code Review
commit 7dea60f263
2 changed files with 12 additions and 12 deletions

View File

@ -77,3 +77,15 @@
opts: bind
state: mounted
fstype: none
- name: Prevent SELinux from preventing haproxy from binding to arbitrary ports
seboolean:
name: haproxy_connect_any
state: yes
persistent: yes
tags:
- haproxy-service-config
notify:
- Reload haproxy
when:
- ansible_facts['selinux']['status'] == "enabled"

View File

@ -41,15 +41,3 @@
(item.service.state is defined and item.service.state == 'absent')
tags:
- haproxy-service-config
- name: Prevent SELinux from preventing haproxy from binding to arbitrary ports
seboolean:
name: haproxy_connect_any
state: yes
persistent: yes
tags:
- haproxy-service-config
notify:
- Reload haproxy
when:
- ansible_facts['selinux']['status'] == "enabled"