From cd562da4d2c6b1cc186240bac1d699e72a9a45d8 Mon Sep 17 00:00:00 2001 From: jack Date: Sun, 22 Mar 2026 19:49:33 +0700 Subject: [PATCH] fix(snappymail): set data dir owner to uid 82 (www-data/Alpine) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SnappyMail container runs as www-data (uid 82 in Alpine). Directory was created as deploy:deploy (uid 1000) → [202] is_readable() error. Fix: chown 82:82 on the data directory. Co-Authored-By: Claude Sonnet 4.6 --- roles/tools/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 806480e..1efb8b1 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -24,9 +24,9 @@ ansible.builtin.file: path: "{{ tools_root }}/snappymail/data" state: directory - owner: "{{ deploy_user }}" - group: "{{ deploy_group }}" - mode: "0750" + owner: "82" # www-data uid in Alpine (SnappyMail container user) + group: "82" + mode: "0755" # ── TLS certificate for mail.csrx.ru (via certbot + Cloudflare DNS-01) ─────── - name: Install certbot and Cloudflare DNS plugin