[int]
This commit is contained in:
parent
01a3fa5fb7
commit
d5ae0ac074
|
|
@ -1,89 +1,93 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "configuration | client | web",
|
"name": "show vars",
|
||||||
"when": "cfg_authelia_for_owncloud.web != None",
|
"when": "switch_show_vars",
|
||||||
"block": [
|
"ansible.builtin.debug": {
|
||||||
{
|
"var": "vars.cfg_authelia_for_owncloud"
|
||||||
"name": "compute client secret hash",
|
}
|
||||||
"become": true,
|
|
||||||
"ansible.builtin.shell": {
|
|
||||||
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.web.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
|
||||||
},
|
|
||||||
"register": "temp_authelia_for_owncloud_web_client_secret_hashed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "emplace",
|
|
||||||
"become": true,
|
|
||||||
"ansible.builtin.template": {
|
|
||||||
"src": "authelia-client-conf-web.json.j2",
|
|
||||||
"dest": "/etc/authelia/conf.d/clients/owncloud-web.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration | client | desktop",
|
"name": "configuration | client",
|
||||||
"when": "cfg_authelia_for_ownloud.desktop != None",
|
|
||||||
"block": [
|
"block": [
|
||||||
{
|
{
|
||||||
"name": "compute client secret hash",
|
"name": "configuration | client | web",
|
||||||
"become": true,
|
"when": "cfg_authelia_for_owncloud.web != None",
|
||||||
"ansible.builtin.shell": {
|
"block": [
|
||||||
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.desktop.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
{
|
||||||
},
|
"name": "emplace",
|
||||||
"register": "temp_authelia_for_owncloud_desktop_client_secret_hashed"
|
"become": true,
|
||||||
|
"ansible.builtin.template": {
|
||||||
|
"src": "authelia-client-conf-web.json.j2",
|
||||||
|
"dest": "/etc/authelia/conf.d/clients/owncloud-web.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "emplace",
|
"name": "configuration | client | desktop",
|
||||||
"become": true,
|
"when": "cfg_authelia_for_ownloud.desktop != None",
|
||||||
"ansible.builtin.template": {
|
"block": [
|
||||||
"src": "authelia-client-conf-desktop.json.j2",
|
{
|
||||||
"dest": "/etc/authelia/conf.d/clients/owncloud-desktop.json"
|
"name": "compute client secret hash",
|
||||||
}
|
"become": true,
|
||||||
}
|
"ansible.builtin.shell": {
|
||||||
]
|
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.desktop.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
||||||
},
|
},
|
||||||
{
|
"register": "temp_authelia_for_owncloud_desktop_client_secret_hashed"
|
||||||
"name": "configuration | client | android",
|
},
|
||||||
"when": "cfg_authelia_for_ownloud.android != None",
|
{
|
||||||
"block": [
|
"name": "emplace",
|
||||||
{
|
"become": true,
|
||||||
"name": "compute client secret hash",
|
"ansible.builtin.template": {
|
||||||
"become": true,
|
"src": "authelia-client-conf-desktop.json.j2",
|
||||||
"ansible.builtin.shell": {
|
"dest": "/etc/authelia/conf.d/clients/owncloud-desktop.json"
|
||||||
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.android.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
}
|
||||||
},
|
}
|
||||||
"register": "temp_authelia_for_owncloud_android_client_secret_hashed"
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "emplace",
|
"name": "configuration | client | android",
|
||||||
"become": true,
|
"when": "cfg_authelia_for_ownloud.android != None",
|
||||||
"ansible.builtin.template": {
|
"block": [
|
||||||
"src": "authelia-client-conf-android.json.j2",
|
{
|
||||||
"dest": "/etc/authelia/conf.d/clients/owncloud-android.json"
|
"name": "compute client secret hash",
|
||||||
}
|
"become": true,
|
||||||
}
|
"ansible.builtin.shell": {
|
||||||
]
|
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.android.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
||||||
},
|
},
|
||||||
{
|
"register": "temp_authelia_for_owncloud_android_client_secret_hashed"
|
||||||
"name": "configuration | client | ios",
|
},
|
||||||
"when": "cfg_authelia_for_ownloud.ios != None",
|
{
|
||||||
"block": [
|
"name": "emplace",
|
||||||
{
|
"become": true,
|
||||||
"name": "compute client secret hash",
|
"ansible.builtin.template": {
|
||||||
"become": true,
|
"src": "authelia-client-conf-android.json.j2",
|
||||||
"ansible.builtin.shell": {
|
"dest": "/etc/authelia/conf.d/clients/owncloud-android.json"
|
||||||
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.ios.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
}
|
||||||
},
|
}
|
||||||
"register": "temp_authelia_for_owncloud_ios_client_secret_hashed"
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "emplace",
|
"name": "configuration | client | ios",
|
||||||
"become": true,
|
"when": "cfg_authelia_for_ownloud.ios != None",
|
||||||
"ansible.builtin.template": {
|
"block": [
|
||||||
"src": "authelia-client-conf-ios.json.j2",
|
{
|
||||||
"dest": "/etc/authelia/conf.d/clients/owncloud-ios.json"
|
"name": "compute client secret hash",
|
||||||
}
|
"become": true,
|
||||||
|
"ansible.builtin.shell": {
|
||||||
|
"cmd": "authelia crypto hash generate bcrypt --password {{cfg_authelia_for_owncloud.ios.client_secret}} | cut --delimiter=' ' --fields='2-'"
|
||||||
|
},
|
||||||
|
"register": "temp_authelia_for_owncloud_ios_client_secret_hashed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "emplace",
|
||||||
|
"become": true,
|
||||||
|
"ansible.builtin.template": {
|
||||||
|
"src": "authelia-client-conf-ios.json.j2",
|
||||||
|
"dest": "/etc/authelia/conf.d/clients/owncloud-ios.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue