From 8a3adb0ce24e38ef93f98b7deada0e02c0d2398e Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Thu, 22 Sep 2022 11:41:17 +0200 Subject: [PATCH] Create directories via become. --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ba2c344..c2d7b76 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,14 +11,15 @@ ansible.builtin.file: state: directory path: "{{ item }}" - mode: 0755 + owner: "{{ ansible_user_id }}" + mode: 0750 with_items: - "{{ plausible_volume_config }}" - "{{ plausible_volume_events }}" - "~/plausible" tags: - configuration - become: false + become: true - name: Set up the database directory. ansible.builtin.file: