Files @ 57667a2c528b
Branch filter:

Location: majic-ansible-roles/roles/mail_forwarder/tasks/main.yml

branko
MAR-4: Updated instructions for setting-up the TLS stuff on mail server (keys, certs).
---

- 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