27 lines
606 B
YAML
Executable File
27 lines
606 B
YAML
Executable File
---
|
|
- name: setup authentik docker dir
|
|
file:
|
|
state: directory
|
|
path: "{{ item }}"
|
|
loop:
|
|
- "{{ authentik_dir }}"
|
|
- "{{ authentik_inst }}"
|
|
|
|
- name: download authentik compose file
|
|
get_url:
|
|
url: "{{ authentik_source }}/{{ authentik_version }}/{{ authentik_target }}"
|
|
dest: "{{ authentik_inst }}/{{ authentik_target }}"
|
|
force: yes
|
|
owner: root
|
|
group: root
|
|
notify: restart authentik
|
|
|
|
- name: template environment
|
|
template:
|
|
src: opt/authentik/.env.j2
|
|
dest: "{{ authentik_inst }}/.env"
|
|
mode: 0640
|
|
owner: root
|
|
group: root
|
|
notify: restart authentik
|