Create directories via become.

This commit is contained in:
Laur Ivan 2022-09-22 11:41:17 +02:00
parent d970ae0683
commit 8a3adb0ce2

View File

@ -11,14 +11,15 @@
ansible.builtin.file: ansible.builtin.file:
state: directory state: directory
path: "{{ item }}" path: "{{ item }}"
mode: 0755 owner: "{{ ansible_user_id }}"
mode: 0750
with_items: with_items:
- "{{ plausible_volume_config }}" - "{{ plausible_volume_config }}"
- "{{ plausible_volume_events }}" - "{{ plausible_volume_events }}"
- "~/plausible" - "~/plausible"
tags: tags:
- configuration - configuration
become: false become: true
- name: Set up the database directory. - name: Set up the database directory.
ansible.builtin.file: ansible.builtin.file: