[mailman3] Fix the remaining SELinux issues
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
4e221cf347
commit
89c45beb9f
1 changed files with 14 additions and 0 deletions
|
@ -468,6 +468,17 @@
|
|||
- mailman
|
||||
- selinux
|
||||
|
||||
- name: Allow Apache to connect to localhost gunicorn
|
||||
ansible.posix.seboolean:
|
||||
name: httpd_can_network_connect
|
||||
state: yes
|
||||
persistent: yes
|
||||
notify:
|
||||
- restart apache
|
||||
tags:
|
||||
- mailman
|
||||
- selinux
|
||||
|
||||
- name: Set the SELinux policy for the static files directory
|
||||
community.general.sefcontext:
|
||||
target: "{{ mailman_webui_basedir }}/static(/.*)?"
|
||||
|
@ -486,6 +497,9 @@
|
|||
- mailman
|
||||
- selinux
|
||||
|
||||
- name: Apply SELinux changes
|
||||
command: restorecon -irv "{{ mailman_webui_basedir}}"
|
||||
|
||||
# Start services
|
||||
- name: Start services
|
||||
ansible.builtin.systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue