From 92a51785cb1842190bc1112c6e6ec003547c5dc6 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Thu, 22 Sep 2022 14:33:46 +0200 Subject: [PATCH] Set also the group for directories. --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9e55061..b50f8c9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,8 +5,9 @@ ansible.builtin.file: state: directory path: "{{ item }}" - mode: 0755 - owner: "{{ ansible_user_id }}" + mode: '0755' + owner: "{{ ansible_effective_user_id }}" + group: "{{ ansible_effective_group_id }}" with_items: - "{{ authentik_volume_media }}" - "{{ authentik_volume_certs }}"