[mailman3] Add compress step
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
5c88ef738b
commit
96b5e73a99
3 changed files with 19 additions and 7 deletions
|
@ -6,6 +6,7 @@ mailman_rest_api_user: restadmin
|
|||
mailman_rest_api_pass: changeme
|
||||
mailman_rest_api_workers: 2
|
||||
mailman_log_directory: /var/log/mailman3
|
||||
mailman_log_level: debug
|
||||
mailman_log_items:
|
||||
- archiver
|
||||
- bounce
|
||||
|
|
|
@ -152,8 +152,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ mailman_webui_basedir }}/{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
owner: mailman
|
||||
group: mailman
|
||||
mode: 0755
|
||||
with_items:
|
||||
- static
|
||||
|
@ -165,8 +165,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ mailman_webui_basedir }}/static-fedora/hyperkitty/img"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
owner: mailman
|
||||
group: mailman
|
||||
mode: 0755
|
||||
tags:
|
||||
- mailman
|
||||
|
@ -176,8 +176,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ mailman_webui_basedir }}/templates/{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
owner: mailman
|
||||
group: mailman
|
||||
mode: 0755
|
||||
with_items:
|
||||
- hyperkitty
|
||||
|
@ -312,6 +312,17 @@
|
|||
when:
|
||||
- static_root_dir is changed
|
||||
|
||||
- name: Compress static files
|
||||
ansible.builtin.command:
|
||||
cmd: mailman-web compress
|
||||
chdir: /etc/mailman3
|
||||
become_user: mailman
|
||||
tags:
|
||||
- mailman
|
||||
- hyperkitty
|
||||
when:
|
||||
- static_root_dir is changed
|
||||
|
||||
- name: Systemd unit to start postorius/hyperkitty through gunicorn
|
||||
ansible.builtin.template:
|
||||
src: mailmanweb.service.j2
|
||||
|
|
|
@ -44,7 +44,7 @@ workers: {{ mailman_rest_api_workers }}
|
|||
{% for item in mailman_log_items %}
|
||||
|
||||
[loggin.{{ item }}]
|
||||
level: info
|
||||
level: {{ mailman_log_level }}
|
||||
path: {{ mailman_log_directory }}/{{ item }}.log
|
||||
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue