2021-12-01 19:13:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Create needed directories
|
|
|
|
file: path={{ item.dir }} state=directory owner={{ item.owner | default(omit) }} group={{ item.group | default(omit) }} mode={{ item.mode | default(omit) }}
|
|
|
|
loop:
|
2022-03-15 15:00:07 +01:00
|
|
|
- dir: "{{ metabase_root_dir }}"
|
|
|
|
owner: "{{ metabase_user }}"
|
|
|
|
group: "{{ metabase_user }}"
|
2021-12-01 19:13:34 +01:00
|
|
|
- dir: "{{ metabase_root_dir }}/app"
|
|
|
|
- dir: "{{ metabase_root_dir }}/tmp"
|
2022-03-15 15:00:07 +01:00
|
|
|
owner: "{{ metabase_user }}"
|
|
|
|
group: "{{ metabase_user }}"
|
|
|
|
mode: 700
|
2021-12-01 19:13:34 +01:00
|
|
|
- dir: "{{ metabase_root_dir }}/data"
|
|
|
|
owner: "{{ metabase_user }}"
|
|
|
|
mode: 700
|
|
|
|
- dir: "{{ metabase_root_dir }}/etc"
|
|
|
|
group: "{{ metabase_user }}"
|
|
|
|
mode: 750
|
|
|
|
- dir: "{{ metabase_root_dir }}/plugins"
|
|
|
|
owner: "{{ metabase_user }}"
|
|
|
|
- dir: "{{ metabase_root_dir }}/archives"
|
|
|
|
mode: 700
|
|
|
|
- dir: "{{ metabase_root_dir }}/meta"
|
|
|
|
mode: 700
|
|
|
|
- dir: "{{ metabase_root_dir }}/backup"
|
|
|
|
mode: 700
|
|
|
|
tags: metabase
|
|
|
|
|