diff --git a/roles/authelia-for-wiki_js/tasks/main.json b/roles/authelia-for-wiki_js/tasks/main.json index 54e3961..2fe07d8 100644 --- a/roles/authelia-for-wiki_js/tasks/main.json +++ b/roles/authelia-for-wiki_js/tasks/main.json @@ -5,9 +5,7 @@ "ansible.builtin.command": { "cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_wiki_js_client_secret}}" }, - "set_fact": { - "temp_authelia_for_wiki_js_client_secret_hashed": "{{ command_output.stdout }}" - } + "register": "temp_authelia_for_wiki_js_client_secret_hashed" }, { "name": "configuration | emplace", diff --git a/roles/authelia-for-wiki_js/templates/authelia-client-conf.json.j2 b/roles/authelia-for-wiki_js/templates/authelia-client-conf.json.j2 index bdc2046..1117cb2 100644 --- a/roles/authelia-for-wiki_js/templates/authelia-client-conf.json.j2 +++ b/roles/authelia-for-wiki_js/templates/authelia-client-conf.json.j2 @@ -1,6 +1,6 @@ { "client_id": "{{var_authelia_for_wiki_js_client_id}}", - "client_secret": "{{temp_authelia_for_wiki_js_client_secret_hashed}}", + "client_secret": "{{temp_authelia_for_wiki_js_client_secret_hashed.stdout}}", "client_name": "Wiki.js", "public": false, "authorization_policy": "one_factor",