aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-09-10 22:12:44 +0100
committerGravatar Chris Lovering <[email protected]>2025-09-10 22:28:29 +0100
commite97e317aba18d228dac37785fa0f8f68537b5a95 (patch)
treee8bf89efe08829864117b79e1a4ab9eb29b32591
parentDon't set gid when creating mail dirs and operating on mailboxes (diff)
Set group write permissions on /var/vmail folder
Signed-off-by: Chris Lovering <[email protected]>
-rw-r--r--ansible/roles/dovecot/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/dovecot/tasks/main.yml b/ansible/roles/dovecot/tasks/main.yml
index 1f6fa9a..fc6158b 100644
--- a/ansible/roles/dovecot/tasks/main.yml
+++ b/ansible/roles/dovecot/tasks/main.yml
@@ -29,6 +29,16 @@
tags:
- role::dovecot
+- name: Set permissions on /var/vmail directory
+ file:
+ path: /var/vmail
+ state: directory
+ owner: vmail
+ group: vmail
+ mode: "0775"
+ tags:
+ - role::dovecot
+
- name: Copy welcome script
copy:
src: welcome.sh