[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_pass: changeme
|
||||||
mailman_rest_api_workers: 2
|
mailman_rest_api_workers: 2
|
||||||
mailman_log_directory: /var/log/mailman3
|
mailman_log_directory: /var/log/mailman3
|
||||||
|
mailman_log_level: debug
|
||||||
mailman_log_items:
|
mailman_log_items:
|
||||||
- archiver
|
- archiver
|
||||||
- bounce
|
- bounce
|
||||||
|
|
|
@ -152,8 +152,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ mailman_webui_basedir }}/{{ item }}"
|
path: "{{ mailman_webui_basedir }}/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: mailman
|
||||||
group: root
|
group: mailman
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- static
|
- static
|
||||||
|
@ -165,8 +165,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ mailman_webui_basedir }}/static-fedora/hyperkitty/img"
|
path: "{{ mailman_webui_basedir }}/static-fedora/hyperkitty/img"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: mailman
|
||||||
group: root
|
group: mailman
|
||||||
mode: 0755
|
mode: 0755
|
||||||
tags:
|
tags:
|
||||||
- mailman
|
- mailman
|
||||||
|
@ -176,8 +176,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ mailman_webui_basedir }}/templates/{{ item }}"
|
path: "{{ mailman_webui_basedir }}/templates/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: mailman
|
||||||
group: root
|
group: mailman
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- hyperkitty
|
- hyperkitty
|
||||||
|
@ -312,6 +312,17 @@
|
||||||
when:
|
when:
|
||||||
- static_root_dir is changed
|
- 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
|
- name: Systemd unit to start postorius/hyperkitty through gunicorn
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: mailmanweb.service.j2
|
src: mailmanweb.service.j2
|
||||||
|
|
|
@ -44,7 +44,7 @@ workers: {{ mailman_rest_api_workers }}
|
||||||
{% for item in mailman_log_items %}
|
{% for item in mailman_log_items %}
|
||||||
|
|
||||||
[loggin.{{ item }}]
|
[loggin.{{ item }}]
|
||||||
level: info
|
level: {{ mailman_log_level }}
|
||||||
path: {{ mailman_log_directory }}/{{ item }}.log
|
path: {{ mailman_log_directory }}/{{ item }}.log
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue