- name: Install Mailman 2 with Apache, Exim and nmzproc become: yes apt: name: - mailman - apache2 - exim4-daemon-heavy # for the content scanning extension - nmzproc register: install_mailman # mailman.service fails and tries to restart indefinitely (Site list is missing: mailman) - name: Prepare update-exim4.conf.conf for the restricted_redirector router become: yes lineinfile: dest: /etc/exim4/update-exim4.conf.conf regexp: ^dc_{{ item.key }}= line: dc_{{ item.key }}='{{ item.value }}' with_dict: readhost: "{{ inventory_hostname }}" smarthost: redirector.niif.hu eximconfig_configtype: internet local_interfaces: "" when: not (ansible_check_mode and install_mailman is changed) notify: Reload Exim - name: Integrate Mailman with Exim become: yes template: src: exim4.conf.template dest: /etc/exim4/exim4.conf.template owner: root group: root mode: 0644 notify: Reload Exim - name: Set up SMTP authentication database become: yes copy: src: exim_passwd dest: /etc/exim4/passwd owner: root group: Debian-exim mode: 0640 when: vault_open is defined - name: Configure Mailman become: yes template: src: mm_cfg.py dest: /etc/mailman/mm_cfg.py owner: root group: root mode: 0644 notify: Restart Mailman