summaryrefslogtreecommitdiffstats
path: root/roles/mailman_lists/tasks/main.yml
blob: c9c16342af5d0c75087378ab81ba08c107dfe449 (plain)
1
2
3
4
5
6
---
- command: creates=/var/lib/mailman/lists/{{ item.name }} /usr/lib/mailman/bin/newlist {{ item.name }}@{{ mailman_prefix }} {{ item.owner | default( mailman_default_owner ) }} $(pwgen -1 14)
  with_items: mailman_lists

- template: src=aliases dest=/etc/postfix/aliases.mailman
  notify: update mailman aliases