| |
@@ -346,8 +346,6 @@
|
| |
tags:
|
| |
- mailman
|
| |
- hyperkitty
|
| |
- when:
|
| |
- - static_root_dir is changed
|
| |
|
| |
- name: Compress static files
|
| |
ansible.builtin.command:
|
| |
@@ -358,8 +356,6 @@
|
| |
tags:
|
| |
- mailman
|
| |
- hyperkitty
|
| |
- when:
|
| |
- - static_root_dir is changed
|
| |
|
| |
- name: Systemd unit to start postorius/hyperkitty through gunicorn
|
| |
ansible.builtin.template:
|
| |
@@ -468,6 +464,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 +493,9 @@
|
| |
- mailman
|
| |
- selinux
|
| |
|
| |
+ - name: Apply SELinux changes
|
| |
+ command: restorecon -irv "{{ mailman_webui_basedir}}"
|
| |
+
|
| |
# Start services
|
| |
- name: Start services
|
| |
ansible.builtin.systemd:
|
| |