Only install ldap dependencies if needed
This commit is contained in:
parent
7391a46cb3
commit
b1798cf33f
1 changed files with 8 additions and 3 deletions
|
|
@ -5,12 +5,18 @@
|
|||
- mailman3-web
|
||||
- python3-mailman-hyperkitty
|
||||
- lynx # needed to convert html mail
|
||||
- python3-mailmanclient
|
||||
|
||||
- name: install mailman ldap dependencies
|
||||
when: mailman.web.ldap|d(False)
|
||||
package:
|
||||
name:
|
||||
- python3-wheel
|
||||
- python3-pip
|
||||
- python3-django-auth-ldap
|
||||
- python3-mailmanclient
|
||||
|
||||
- name: install mailman addons via pip
|
||||
- name: install mailman ldap sync dependencies via pip
|
||||
when: mailman.web.ldap.sync|d(False)
|
||||
notify: restart mailman
|
||||
loop:
|
||||
- git+https://git.cccv.de/uffd/postorius-ldap-membership-management.git
|
||||
|
|
@ -50,7 +56,6 @@
|
|||
meta: flush_handlers
|
||||
|
||||
- name: "setup mailing list"
|
||||
notify: restart mailman-web
|
||||
loop: "{{ mailman.lists|expand_dict_keys_with_defaults(mailman.list_defaults)|dict2items }}"
|
||||
loop_control:
|
||||
loop_var: current_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue