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>
This commit is contained in:
1 parent
bcc01436fc
commit
b6d3447afc
3 files changed
+7
-5
No files matched your search
+3
-2
@@ -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/<x>/ 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
|
||||
|
||||
+3
-2
@@ -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
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user