[mailman3] Fix the remaining SELinux issues

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-04-26 15:27:53 +02:00
parent 4e221cf347
commit 89c45beb9f

View file

@ -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: