mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
[mailman3] Fix the remaining SELinux issues
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user