mailman-web: Override static files as well as templates
This commit is contained in:
parent
fa916d362d
commit
88864fc25a
2 changed files with 31 additions and 0 deletions
roles/mailman
|
@ -118,5 +118,6 @@ mailman_superuser_name: root
|
||||||
|
|
||||||
mailman_web_override_templates: no
|
mailman_web_override_templates: no
|
||||||
mailman_web_override_templates_path: "{{ playbook_dir }}/templates/override"
|
mailman_web_override_templates_path: "{{ playbook_dir }}/templates/override"
|
||||||
|
mailman_web_override_static_path: "{{ playbook_dir }}/static/override"
|
||||||
mailman_web_hyperkitty_cleanup_cron: '0 * * * *'
|
mailman_web_hyperkitty_cleanup_cron: '0 * * * *'
|
||||||
mailman_web_privacy_enhancements: no
|
mailman_web_privacy_enhancements: no
|
||||||
|
|
|
@ -29,3 +29,33 @@
|
||||||
when: "item.state != 'directory'"
|
when: "item.state != 'directory'"
|
||||||
with_filetree: "{{ mailman_web_override_templates_path }}"
|
with_filetree: "{{ mailman_web_override_templates_path }}"
|
||||||
notify: restart mailman3-web
|
notify: restart mailman3-web
|
||||||
|
|
||||||
|
- name: create /var/lib/mailman3/web/static
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/lib/mailman3/web/static
|
||||||
|
state: directory
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: create static override directories
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/var/lib/mailman3/web/static/{{ item.path }}"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: 0755
|
||||||
|
recurse: yes
|
||||||
|
when: "item.state == 'directory'"
|
||||||
|
with_filetree: "{{ mailman_web_override_static_path }}"
|
||||||
|
notify: restart mailman3-web
|
||||||
|
|
||||||
|
- name: render static overrides
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ item.root }}/{{ item.path }}"
|
||||||
|
dest: "/var/lib/mailman3/web/static/{{ item.path }}"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: 0644
|
||||||
|
when: "item.state != 'directory'"
|
||||||
|
with_filetree: "{{ mailman_web_override_static_path }}"
|
||||||
|
notify: restart mailman3-web
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue