0
0
opnxng-deploy-playbook/config-tasks/authelia.yaml

29 lines
851 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 }}"
2023-11-13 20:27:07 +08:00
- name: Set up configuration.yaml
2023-11-06 10:39:27 +08:00
template:
2023-11-13 20:27:07 +08:00
src: "conf/configuration.yaml.j2"
dest: "{{ docker_dir }}/authelia/configuration.yaml"
2023-11-06 10:39:27 +08:00
owner: 1000
group: 1000
mode: 0755
2023-11-13 20:27:07 +08:00
- name: Set up users_database.yaml
2023-11-06 10:39:27 +08:00
template:
2023-11-13 20:27:07 +08:00
src: "conf/users_database.yaml.j2"
dest: "{{ docker_dir }}/authelia/users_database.yaml"
2023-11-06 10:39:27 +08:00
owner: 1000
group: 1000
mode: 0755