chore: add basic docker-compose for authentik
This commit is contained in:
parent
43327b47f3
commit
f814496049
3 changed files with 150 additions and 0 deletions
|
|
@ -1,3 +1,44 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# tasks file for authentik
|
||||
|
||||
- name: Create docker compose directory
|
||||
file:
|
||||
path: "{{ authentik_docker_compose_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create authentik data directory
|
||||
file:
|
||||
path: "{{ authentik_docker_volume_dir }}/data"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create authentik certs directory
|
||||
file:
|
||||
path: "{{ authentik_docker_volume_dir }}/certs"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create authentik templates directory
|
||||
file:
|
||||
path: "{{ authentik_docker_volume_dir }}/templates"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create postgres data directory
|
||||
file:
|
||||
path: "{{ authentik_docker_volume_dir }}/postgresql"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create docker-compose file for authentik
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{ authentik_docker_compose_dir }}/docker-compose.yml"
|
||||
mode: '0644'
|
||||
|
||||
- name: Start authentik containers
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ authentik_docker_compose_dir }}"
|
||||
state: present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue