0
0
opnxng-deploy-playbook/config-tasks/authelia.yaml
2024-06-06 23:52:16 +08:00

29 lines
851 B
YAML

- 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.yaml
template:
src: "conf/configuration.yaml.j2"
dest: "{{ docker_dir }}/authelia/configuration.yaml"
owner: 1000
group: 1000
mode: 0755
- name: Set up users_database.yaml
template:
src: "conf/users_database.yaml.j2"
dest: "{{ docker_dir }}/authelia/users_database.yaml"
owner: 1000
group: 1000
mode: 0755