Changeset - 82951ff4f9f9
[Not reviewed]
0 0 2
Branko Majic (branko) - 10 years ago 2015-04-07 22:59:49
branko@majic.rs
MAR-4: Added initial implementation for mail server role. Includes deployment of packages and purging of Exim4 configuration. Dovecot packages installed from backports.
2 files changed with 28 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/mail_server/handlers/main.yml
Show inline comments
 
new file 100644
 
---
 

	
 
- name: Purge Exim configuration
 
  apt: name="exim4*" state=absent purge=yes
 
\ No newline at end of file
roles/mail_server/tasks/main.yml
Show inline comments
 
new file 100644
 
---
 

	
 
- 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
 

	
0 comments (0 inline, 0 general)