added authentik to ansible

This commit is contained in:
2024-08-14 13:27:05 -06:00
parent 9c7186d602
commit 6b36a66dcc
5 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,26 @@
- name: make authentik directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/authentik
- name: Template out the compose file
ansible.builtin.template:
src: authentik-compose.yml.j2
dest: /opt/stacks/authentik/compose.yml
owner: root
mode: 644
- name: Template out the .env file
ansible.builtin.template:
src: authentik-env.j2
dest: /opt/stacks/authentik/.env
owner: root
mode: 644
- name: deploy authentik stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/authentik
files:
- compose.yml

View File

@ -66,3 +66,9 @@
- name: Install hoarder
import_tasks: hoarder.yml
- name: Install authentik
import_tasks: authentik.yml
#- name: Install openwebui
# import_tasks: openwebui.yml