diff --git a/roles/mailman3/tasks/main.yml b/roles/mailman3/tasks/main.yml index 36687f2861..bed743b01b 100644 --- a/roles/mailman3/tasks/main.yml +++ b/roles/mailman3/tasks/main.yml @@ -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: