Files
cloud-authentik/tasks/main.yml
T
lhahnandClaude Opus 5.5 b6d3447afc Fetch compose file from the git tag and use compose v2
- goauthentik.io/version/<x>/docker-compose.yml only exists for old releases; download lifecycle/container/compose.yml of the version tag instead and always store it as docker-compose.yml
- restart handler used the removed docker_compose (v1) module; switch to community.docker.docker_compose_v2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:37:15 +02:00

27 lines
602 B
YAML
Executable File

---
- name: setup authentik docker dir
file:
state: directory
path: "{{ item }}"
loop:
- "{{ authentik_dir }}"
- "{{ authentik_inst }}"
- name: download authentik compose file
get_url:
url: "{{ authentik_source }}/{{ authentik_version }}/{{ authentik_target }}"
dest: "{{ authentik_inst }}/docker-compose.yml"
force: yes
owner: root
group: root
notify: restart authentik
- name: template environment
template:
src: opt/authentik/.env.j2
dest: "{{ authentik_inst }}/.env"
mode: 0640
owner: root
group: root
notify: restart authentik