From 4aca41125ec29085cbce0600f9dd4b86b2186a5b Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 14 Nov 2024 14:02:19 +0500 Subject: [PATCH] Simplify authentik networking --- roles/authentik/tasks/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/roles/authentik/tasks/main.yml b/roles/authentik/tasks/main.yml index edec222..a5f5bfd 100644 --- a/roles/authentik/tasks/main.yml +++ b/roles/authentik/tasks/main.yml @@ -1,9 +1,8 @@ --- -- name: Create authentik networks +- name: Create authentik network become: true community.docker.docker_network: - name: "{{ item }}" - loop: ["authentik", "authentik-redis"] + name: authentik - name: Create authnetik docker volumes become: true community.docker.docker_volume: @@ -16,7 +15,7 @@ image: redis:7.4-bookworm command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"] networks: - - name: authentik-redis + - name: authentik volumes: - authentik-redis:/data restart_policy: unless-stopped @@ -40,7 +39,6 @@ command: ["server"] networks: - name: authentik - - name: authentik-redis - name: postgresql - name: haproxy - name: monitoring @@ -70,7 +68,6 @@ command: ["worker"] networks: - name: authentik - - name: authentik-redis - name: postgresql volumes: - authentik-media:/media