Give database access to its directory

This commit is contained in:
erebion 2023-09-14 09:11:26 +02:00
parent 5971bffc51
commit 156ad3ad91

View file

@ -27,16 +27,21 @@
- "{{ docker_volumes_dir }}/authentik/custom-templates"
- "{{ docker_volumes_dir }}/authentik/certs"
- name: "Create Redis and Database directores for Authentik with Docker"
- name: "Create Redis directory for Authentik with Docker"
ansible.builtin.file:
path: "{{ item }}"
path: "{{ docker_volumes_dir }}/authentik/redis"
state: directory
owner: 999
group: root
mode: '0750'
with_items:
- "{{ docker_volumes_dir }}/authentik/redis"
- "{{ docker_volumes_dir }}/authentik/database"
- name: "Create Database directory for Authentik with Docker"
ansible.builtin.file:
path: "{{ docker_volumes_dir }}/authentik/database"
state: directory
owner: root
group: root
mode: '0750'
- name: "Template .env files for Authentik with Docker"
ansible.builtin.template: