Files
@ fe6cdb2443c7
Branch filter:
Location: majic-ansible-roles/roles/mail_forwarder/tasks/main.yml - annotation
fe6cdb2443c7
536 B
text/x-yaml
MAR-19: Simplified the parameters for common role, making a lot of them optional with some sane defaults. Switched to using an actual list for additional groups.
7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b 7ab6518de03b c9b8c60fbd5e c9b8c60fbd5e c9b8c60fbd5e | ---
- name: Install Postfix
apt: name="postfix" state=installed
notify:
- Purge Exim configuration
- name: Deploy Postfix main configuration
template: src="main.cf.j2" dest="/etc/postfix/main.cf"
notify:
- Restart Postfix
- name: Set-up local mail aliases
lineinfile:
dest: "/etc/aliases"
line: "{{ item.key }}: {{ item.value }}"
regexp: "^{{ item.key }}"
state: present
with_dict: local_mail_aliases
notify:
- Rebuild mail aliases
- name: Install SWAKS
apt: name="swaks" state=installed
|