Files @ 82951ff4f9f9
Branch filter:

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

branko
MAR-4: Added initial implementation for mail server role. Includes deployment of packages and purging of Exim4 configuration. Dovecot packages installed from backports.
---

- name: Add backports repository
  apt_repository: repo="deb http://http.debian.net/debian wheezy-backports main" state=present

- name: Install Dovecot packages
  apt: name="{{ item }}" state=installed default_release="wheezy-backports"
  with_items:
    - dovecot-imapd
    - dovecot-ldap
    - dovecot-sieve
    - dovecot-managesieved

- name: Install Postfix packages
  apt: name="{{ item }}" state=installed
  with_items:
    - postfix
    - postfix-ldap
  notify:
    - Purge Exim configuration

- name: Install SWAKS
  apt: name="swaks" state=installed