42 lines
984 B
YAML
42 lines
984 B
YAML
- 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
|