chore: add authentik outpost deployment
Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
parent
dbcccc090b
commit
7e008c11b3
2 changed files with 52 additions and 0 deletions
|
|
@ -1,3 +1,32 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# tasks file for authentik_outpost_ldap
|
||||
|
||||
- name: Create LDAP network
|
||||
community.docker.docker_network:
|
||||
name: "{{ authentik_outpost_ldap_network }}"
|
||||
state: present
|
||||
|
||||
- name: Create docker compose directory
|
||||
file:
|
||||
path: "{{ authentik_outpost_ldap_docker_compose_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Create docker-compose file for authentik LDAP outpost
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{ authentik_outpost_ldap_docker_compose_dir }}/docker-compose.yml"
|
||||
mode: '0644'
|
||||
|
||||
- name: Start authentik LDAP outpost container
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ authentik_outpost_ldap_docker_compose_dir }}"
|
||||
state: present
|
||||
recreate: always
|
||||
wait: true
|
||||
wait_timeout: 120
|
||||
retries: 3
|
||||
delay: 15
|
||||
register: result
|
||||
until: result is not failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue