fix(authentik): set proper ownership and permissions for media and custom-templates dirs
ansible-core-net / deploy (push) Successful in 21s

This commit is contained in:
karpenok committed 2026-11-10 19:50:40 +07:00
1 parent 10cf792e4e
commit 172614e421
1 file changed
+10 -9
+10 -9
View File
@@ -1,17 +1,17 @@
---
- name: Создать каталоги для сервиса Authentik
ansible.builtin.file:
path: "{{ item }}"
path: "{{ item.path }}"
state: directory
owner: root
group: root
mode: "0750"
owner: "{{ item.owner | default('root') }}"
group: "{{ item.group | default('root') }}"
mode: "{{ item.mode | default('0750') }}"
loop:
- "{{ authentik_dir }}"
- "{{ authentik_dir }}/db"
- "{{ authentik_dir }}/redis"
- "{{ authentik_dir }}/media"
- "{{ authentik_dir }}/custom-templates"
- { path: "{{ authentik_dir }}", mode: "0755" }
- { path: "{{ authentik_dir }}/db", mode: "0700" }
- { path: "{{ authentik_dir }}/redis", mode: "0700" }
- { path: "{{ authentik_dir }}/media", owner: "1000", group: "1000", mode: "0775" }
- { path: "{{ authentik_dir }}/custom-templates", owner: "1000", group: "1000", mode: "0775" }
- name: Проверить наличие обязательных секретов Authentik
ansible.builtin.assert:
@@ -33,3 +33,4 @@
ansible.builtin.command: docker compose -f {{ authentik_dir }}/compose.yaml up -d --remove-orphans
register: compose_up
changed_when: "'Started' in compose_up.stderr or 'Created' in compose_up.stderr or 'Recreated' in compose_up.stderr or 'Pulled' in compose_up.stderr"