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/custom-templates"
- "{{ docker_volumes_dir }}/authentik/certs" - "{{ 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: ansible.builtin.file:
path: "{{ item }}" path: "{{ docker_volumes_dir }}/authentik/redis"
state: directory state: directory
owner: 999 owner: 999
group: root group: root
mode: '0750' mode: '0750'
with_items:
- "{{ docker_volumes_dir }}/authentik/redis" - name: "Create Database directory for Authentik with Docker"
- "{{ docker_volumes_dir }}/authentik/database" 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" - name: "Template .env files for Authentik with Docker"
ansible.builtin.template: ansible.builtin.template: