- 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>
27 lines
602 B
YAML
Executable File
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
|