Files
@ d26fe0368a4b
Branch filter:
Location: majic-ansible-roles/roles/mail_forwarder/tasks/main.yml - annotation
d26fe0368a4b
536 B
text/x-yaml
MAR-5: Updated php and wsgi website roles to include set-up website-specific TLS configuration for Nginx (including separate TLS key/certificate if necessary).
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
|