install libsemanage a few more times because twice is not enough
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
81f6d53500
commit
0dded6b55c
1 changed files with 19 additions and 3 deletions
|
@ -40,11 +40,27 @@
|
|||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: Install libsemanage-python so we can manage selinux with python...
|
||||
package: name=libsemanage-python state=present
|
||||
- name: install libsemanage
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- libsemanage-python
|
||||
tags:
|
||||
- haproxy
|
||||
- httpd
|
||||
- httpd/proxy
|
||||
- selinux
|
||||
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora')
|
||||
|
||||
- name: install libsemanage in a python3 manner
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- python3-libsemanage
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/proxy
|
||||
- selinux
|
||||
when: (ansible_distribution_major_version|int >= 30 and ansible_distribution == 'Fedora') or (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8)
|
||||
|
||||
- name: Turn on certain selinux booleans so haproxy can bind to ports
|
||||
seboolean: name={{ item }} state=true persistent=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue