diff --git a/roles/mail_server/tasks/main.yml b/roles/mail_server/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..b0a5a0e7c9a83b691c8a92f70705ba3e37de83e4 --- /dev/null +++ b/roles/mail_server/tasks/main.yml @@ -0,0 +1,24 @@ +--- + +- 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 +