2024-09-03 11:37:12 +02:00
|
|
|
[
|
2024-10-26 10:00:34 +02:00
|
|
|
{
|
|
|
|
"name": "configuration | compute client secret hash",
|
2024-10-26 10:07:49 +02:00
|
|
|
"become": true,
|
2024-10-26 10:13:25 +02:00
|
|
|
"ansible.builtin.shell": {
|
|
|
|
"cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_wiki_js_client_secret}} | cut --delimiter=' ' --fields='2-'"
|
2024-10-26 10:00:34 +02:00
|
|
|
},
|
2024-10-26 10:10:47 +02:00
|
|
|
"register": "temp_authelia_for_wiki_js_client_secret_hashed"
|
2024-10-26 10:00:34 +02:00
|
|
|
},
|
2024-09-03 11:37:12 +02:00
|
|
|
{
|
|
|
|
"name": "configuration | emplace",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.template": {
|
|
|
|
"src": "authelia-client-conf.json.j2",
|
|
|
|
"dest": "/etc/authelia/conf.d/clients/wiki_js.json"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "configuration | apply",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.command": {
|
|
|
|
"cmd": "/usr/bin/authelia-conf-compose"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "restart service",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.systemd_service": {
|
|
|
|
"state": "restarted",
|
|
|
|
"name": "authelia"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|