working: ansible

This commit is contained in:
Kyattsukuro 2026-10-09 23:15:29 +02:00
parent 35a79bd707
commit 9faecd90d5
3 changed files with 27 additions and 28 deletions

View File

@ -1,9 +1,8 @@
- name: restart container - name: restart container
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: "{{ path }}" project_src: "{{ path }}"
project_name: "{{ role_name }}" project_name: "{{ role_name }}"
recreate: "always" recreate: "always"
services: ["authentik"] services: ["authentik"]
state: "restarted" state: "restarted"
when: not _authentik_already_restarted when: not _authentik_already_restarted

View File

@ -16,5 +16,5 @@ galaxy_info:
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. # NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role. # Maximum 20 tags per role.
# dependencies: dependencies:
# - role: base - role: traefik

View File

@ -17,7 +17,7 @@ services:
- internal - internal
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/db:/var/lib/postgresql/data - ./data/db:/var/lib/postgresql/data
authentik-proxy: authentik-proxy:
# Server includes embeded proxy outpost # Server includes embeded proxy outpost
@ -32,9 +32,9 @@ services:
- internal - internal
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/authentik_media:/media - ./data/authentik_media:/media
- ./data/authentik_data:/data - ./data/authentik_data:/data
- ./data/authentik_templates:/templates - ./data/authentik_templates:/templates
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.routers.authentik.rule: "Host(`{{ authentik.url }}`)" traefik.http.routers.authentik.rule: "Host(`{{ authentik.url }}`)"
@ -63,24 +63,24 @@ services:
restart: unless-stopped restart: unless-stopped
user: root user: root
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./data/authentik_media:/media - ./data/authentik_media:/media
- ./data/authentik_data:/data - ./data/authentik_data:/data
- ./data/authentik_templates:/templates - ./data/authentik_templates:/templates
- ./data/authentik_certs:/certs - ./data/authentik_certs:/certs
{% if authentik.radius.enabled -%} {% if authentik.radius.enabled %}
radius_outpost: radius_outpost:
image: ghcr.io/goauthentik/radius:2025.10.3 image: ghcr.io/goauthentik/radius:2025.10.3
networks: networks:
- internal - internal
ports: ports:
- 1812:1812/udp - 1812:1812/udp
env_file: ".env" env_file: ".env"
{{ endif -}} {% endif %}
networks: networks:
proxy: proxy:
name: traefik_exposed name: traefik_exposed
external: true external: true
internal: internal: {}