- 90-acl.conf
- auth-deny.conf.ext
- auth-sql.conf.ext
-- name: Ensure virtual mailbox exists
+- name: Ensure correct permissions for the virtual mailbox
+ file:
+ path: "/var/vmail"
+ state: directory
+ mode: "0775"
+ owner: vmail
+ group: storage
+ recurse: true
+ become: true
+- name: Ensure configuration of the virtual mailbox user
user:
name: "vmail"
home: "/var/vmail"
dest: "/srv/git"
owner: "git"
group: "www-data"
+ - name: "vmail"
+ uid: "1yIQJNczXX-YDPG7ws5CUYDs758AmOytJ"
+ dest: "/var"
+ owner: "vmail"
+ group: "vmail"
- name: "website.git"
uid: "13RqrCYU0M-QcN-NWFEuSjPB8eNhTAWT3"
dest: "/srv/git"
name: "git"
shell: "/usr/bin/git-shell"
become: yes
- - name: Ensure user opendkim exists
+ - name: Ensure existance of the {{ item }} user
user:
- name: "opendkim"
+ name: "{{ item }}"
become: yes
+ with_items:
+ - opendkim
+ - vmail
+ - storage