File tree Expand file tree Collapse file tree 7 files changed +33
-1
lines changed Expand file tree Collapse file tree 7 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
* .swp
2
2
tasks /custom
3
+ .ansible
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ __mailman3_web_user:
96
96
comment : " Mailman Web Services"
97
97
home : " {{ mailman3_web_var_dir }}"
98
98
system : true
99
+ shell : " /bin/bash"
99
100
100
101
# The default web user if installing with packages. This is the standard Debian web server user, since this is what the
101
102
# packages expect.
Original file line number Diff line number Diff line change 142
142
role : " {{ item.additional_readonly_users }}"
143
143
when : item.additional_readonly_users is defined
144
144
145
-
146
145
- name : Multiple databases configure pg_hba
147
146
with_items : " {{ mailman3_database_list }}"
148
147
ansible.builtin.lineinfile :
Original file line number Diff line number Diff line change 79
79
state : started
80
80
when : mailman3_process_manager != "supervisor"
81
81
82
+ - name : Install wrapper convenience scripts
83
+ ansible.builtin.template :
84
+ src : " {{ item.src }}"
85
+ dest : " {{ item.dest }}"
86
+ mode : " 0755"
87
+ owner : " root"
88
+ group : " root"
89
+ loop :
90
+ - src : mailman-wrapper.j2
91
+ dest : " /usr/local/bin/mailman-wrapper"
92
+ - src : list-wrapper.j2
93
+ dest : " /usr/local/bin/list-wrapper"
94
+ - src : mailman-web-wrapper.j2
95
+ dest : " /usr/local/bin/mailman-web-wrapper"
96
+
82
97
- name : Customizations
83
98
ansible.builtin.include_tasks :
84
99
file : " {{ item }}"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ su -s /bin/sh -c " $* " {{ __mailman3_core_user_name }}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ MAILMAN_WEB_USER=" {{ __mailman3_web_user_name }}"
4
+ MAILMAN_WEB_EXECUTABLE=" {{ mailman3_install_dir }}/bin/mailman-web"
5
+ MAILMAN_WEB_CONFIG=" {{ mailman3_django_project_dir }}/settings.py"
6
+
7
+ su -s /bin/sh -c " MAILMAN_WEB_CONFIG=${MAILMAN_WEB_CONFIG} ${MAILMAN_WEB_EXECUTABLE} $* " ${MAILMAN_WEB_USER}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ MAILMAN_CORE_USER=" {{ __mailman3_core_user_name }}"
4
+ MAILMAN_CORE_EXECUTABLE=" {{ mailman3_install_dir }}/bin/mailman"
5
+
6
+ su -s /bin/sh -c " ${MAILMAN_CORE_EXECUTABLE} $* " ${MAILMAN_CORE_USER}
You can’t perform that action at this time.
0 commit comments