Changeset - ce1b1a242584
[Not reviewed]
0 2 0
Branko Majic (branko) - 9 years ago 2015-04-07 23:00:36
branko@majic.rs
MAR-4: Added creation of dedicated user/group for stored mail.
2 files changed with 13 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/mail_server/tasks/main.yml
Show inline comments
 
@@ -30,4 +30,11 @@
 
    - ldap-virtual-mailbox-maps
 

	
 
- name: Deploy Postfix main configurationg
 
  copy: src="main.cf" dest="/etc/postfix/main.cf"
 
\ No newline at end of file
 
  copy: src="main.cf" dest="/etc/postfix/main.cf"
 

	
 
- name: Create mail owner group
 
  group: name="{{ mail_user.name }}" gid="{{ mail_user.gid }}" state=present
 

	
 
- name: Create mail owner user
 
  user: name="{{ mail_user.name }}" uid="{{ mail_user.uid }}" group="{{ mail_user.name }}"
 
        home="/var/{{ mail_user.name }}" state=present
testsite/group_vars/mail.yml
Show inline comments
 
@@ -16,3 +16,8 @@ mail_ldap:
 
  tls_truststore: /etc/ssl/certs/truststore.pem
 
  root_dn: dc=example,dc=com
 
  postfix_password: postfix
 

	
 
mail_user:
 
  name: vmail
 
  uid: 5000
 
  gid: 5000
 
\ No newline at end of file
0 comments (0 inline, 0 general)