Initial commit
This commit is contained in:
commit
a1162b44da
7 changed files with 629 additions and 0 deletions
42
tasks/main.yml
Normal file
42
tasks/main.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
- name: install mailman
|
||||
package:
|
||||
name:
|
||||
- mailman3
|
||||
- mailman3-web
|
||||
- lynx # needed to convert html mail
|
||||
- python3-wheel
|
||||
- python3-pip
|
||||
- python3-django-auth-ldap
|
||||
|
||||
- name: install mailman addons via pip
|
||||
notify: restart mailman
|
||||
pip:
|
||||
executable: pip3
|
||||
name: git+https://git.cccv.de/infra/uffd/django-auth-ldap-remoteuser.git
|
||||
|
||||
- name: add ldap sync job
|
||||
when: mailman.ldap.sync|d(False)
|
||||
cron:
|
||||
name: "mailman ldap sync"
|
||||
user: www-data
|
||||
job: /usr/bin/django-admin syncldap --pythonpath /usr/share/mailman3-web --settings settings
|
||||
minute: "*/15"
|
||||
stete:
|
||||
|
||||
- name: copy mailman config
|
||||
notify: restart mailman
|
||||
template:
|
||||
src: mailman.cfg.j2
|
||||
dest: /etc/mailman3/mailman.cfg
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: list
|
||||
|
||||
- name: copy mailman-web config
|
||||
notify: restart mailman-web
|
||||
template:
|
||||
src: mailman-web.py.j2
|
||||
dest: /etc/mailman3/mailman-web.py
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: www-data
|
||||
Loading…
Add table
Add a link
Reference in a new issue