29 lines
845 B
YAML
29 lines
845 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.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
|