From b6d3447afc1480aed3592ae3da017b3252a1a0d8 Mon Sep 17 00:00:00 2001 From: lhahn Date: Wed, 14 Oct 2026 17:37:15 +0200 Subject: [PATCH] Fetch compose file from the git tag and use compose v2 - goauthentik.io/version//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 --- defaults/main.yml | 5 +++-- handlers/main.yml | 5 +++-- tasks/main.yml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 5acfe46..4f2085a 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,8 +7,9 @@ domain_external: "my-domain.tld" authentik_version: 2024.6 -authentik_source: https://goauthentik.io/version -authentik_target: docker-compose.yml +# goauthentik.io/version// only serves old releases; use the compose file of the git tag +authentik_source: https://raw.githubusercontent.com/goauthentik/authentik/version +authentik_target: lifecycle/container/compose.yml authentik_db: type: pgsql diff --git a/handlers/main.yml b/handlers/main.yml index 15813e6..4bcbdd2 100755 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,7 +1,8 @@ --- +# docker_compose (compose v1) is gone; v2 uses the docker compose CLI plugin - name: restart authentik - docker_compose: + community.docker.docker_compose_v2: project_src: "{{ authentik_inst }}" state: present - restarted: yes + pull: missing remove_orphans: yes diff --git a/tasks/main.yml b/tasks/main.yml index 27c3159..e35d2f7 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ - name: download authentik compose file get_url: url: "{{ authentik_source }}/{{ authentik_version }}/{{ authentik_target }}" - dest: "{{ authentik_inst }}/{{ authentik_target }}" + dest: "{{ authentik_inst }}/docker-compose.yml" force: yes owner: root group: root