File tree Expand file tree Collapse file tree 5 files changed +40
-3
lines changed Expand file tree Collapse file tree 5 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 45
45
- name : Include Django management tasks
46
46
ansible.builtin.import_tasks : django.yml
47
47
48
+ - name : Include Plausible Analytics
49
+ ansible.builtin.import_tasks : plausible.yml
50
+
48
51
- name : Include Nginx tasks
49
52
ansible.builtin.import_tasks : nginx.yml
50
53
when : mailman3_install_nginx
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ - name : Create directories for templates
4
+ ansible.builtin.file :
5
+ path : " {{ item }}"
6
+ state : directory
7
+ owner : " {{ __mailman3_web_user_name }}"
8
+ group : " {{ __mailman3_web_group_name }}"
9
+ mode : " 0755"
10
+ loop :
11
+ - ' {{ mailman3_web_var_dir }}/templates/hyperkitty'
12
+ - ' {{ mailman3_web_var_dir }}/templates/postorius'
13
+
14
+ # The files installed here have the potential to be more general, and used by other services.
15
+ # If that occurs, reorganize the tasks
16
+
17
+ - name : Install templates needed for Plausible
18
+ ansible.builtin.template :
19
+ src : " {{ item.src }}"
20
+ dest : " {{ item.dest }}"
21
+ owner : " {{ __mailman3_web_user_name }}"
22
+ group : " {{ __mailman3_web_group_name }}"
23
+ mode : " 0755"
24
+ loop :
25
+ - { src: 'hyperkitty-headers.html.j2', dest: '{{ mailman3_web_var_dir }}/templates/hyperkitty/headers.html' }
26
+ - { src: 'postorius-base.html.j2', dest: '{{ mailman3_web_var_dir }}/templates/postorius/base.html' }
27
+ notify :
28
+ - Restart mailman3-web service
Original file line number Diff line number Diff line change
1
+ <script defer data-domain =" {{ mailman3_web_url }}" src =" https://plausible.io/js/script.js" ></script >
Original file line number Diff line number Diff line change
1
+ {{ '{%' }} extends 'postorius/base.html' {{ '%}' }}
2
+
3
+ {{ '{%' }} block additionalcss {{ '%}' }}
4
+ <script defer data-domain =" {{ mailman3_web_url }}" src =" https://plausible.io/js/script.js" ></script >
5
+ {{ '{%' }} endblock {{ '%}' }}
Original file line number Diff line number Diff line change @@ -210,6 +210,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
210
210
# os.path.join(BASE_DIR, 'static_custom')
211
211
# ]
212
212
#
213
- # TEMPLATES[0]['DIRS'] = [
214
- # os.path.join(BASE_DIR, 'templates')
215
- # ]
213
+ TEMPLATES[0]['DIRS'] = [
214
+ os.path.join(BASE_DIR, 'templates')
215
+ ]
You can’t perform that action at this time.
0 commit comments