0
0
opnxng-deploy-playbook/setups/setup-authelia.yml

29 lines
845 B
YAML
Raw Normal View History

2023-11-06 10:39:27 +08:00
- name: Generate JWT Secret
command: openssl rand -hex 64
register: authelia_jwt_secret_result
- set_fact:
authelia_jwt_secret: "{{ authelia_jwt_secret_result.stdout }}"
- name: Generate Session Secret
command: openssl rand -hex 64
register: authelia_session_secret_result
- set_fact:
authelia_session_secret: "{{ authelia_session_secret_result.stdout }}"
- name: Set up configuration.yml
template:
src: "conf/configuration.yml.j2"
dest: "{{ docker_dir }}/authelia/configuration.yml"
owner: 1000
group: 1000
mode: 0755
- name: Set up users_database.yml
template:
src: "conf/users_database.yml.j2"
dest: "{{ docker_dir }}/authelia/users_database.yml"
owner: 1000
group: 1000
mode: 0755