ansible/roles/docker/tasks/authentik.yml
2024-08-14 13:27:05 -06:00

26 lines
607 B
YAML

- 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