Add Authentik SSO service and refactor Valkey configuration to use native tools and consolidated systemd service
This commit is contained in:
23
roles/authentik/tasks/networking.yml
Normal file
23
roles/authentik/tasks/networking.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Authentik Container Networking - Bridge Network Setup
|
||||
|
||||
- name: Create authentik bridge network
|
||||
containers.podman.podman_network:
|
||||
name: "{{ authentik_network_name }}"
|
||||
driver: bridge
|
||||
internal: false
|
||||
state: present
|
||||
become: yes
|
||||
become_user: "{{ authentik_user }}"
|
||||
|
||||
- name: Check if authentik network exists
|
||||
command: podman network ls --format json
|
||||
become: yes
|
||||
become_user: "{{ authentik_user }}"
|
||||
register: network_list
|
||||
changed_when: false
|
||||
|
||||
- name: Ensure host gateway is available in network
|
||||
debug:
|
||||
msg: "Network {{ authentik_network_name }} configured for host.containers.internal access"
|
||||
when: authentik_enable_host_gateway | default(true)
|
||||
Reference in New Issue
Block a user