[int]
This commit is contained in:
parent
71aea3040a
commit
52e14d8f8d
|
|
@ -1,6 +1,15 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "packages | prerequisites",
|
"name": "show vars",
|
||||||
|
"ansible.builtin.debug": {
|
||||||
|
"var": "vars.cfg_authelia"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "packages",
|
||||||
|
"block": [
|
||||||
|
{
|
||||||
|
"name": "prerequisites",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.apt": {
|
"ansible.builtin.apt": {
|
||||||
"update_cache": true,
|
"update_cache": true,
|
||||||
|
|
@ -12,7 +21,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "packages | keys",
|
"name": "keys",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.get_url": {
|
"ansible.builtin.get_url": {
|
||||||
"url": "https://www.authelia.com/keys/authelia-security.gpg",
|
"url": "https://www.authelia.com/keys/authelia-security.gpg",
|
||||||
|
|
@ -20,7 +29,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "packages | repository",
|
"name": "repository",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.shell": {
|
"ansible.builtin.shell": {
|
||||||
"cmd": "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/authelia-security.gpg] https://apt.authelia.com stable main\" > /etc/apt/sources.list.d/authelia.list",
|
"cmd": "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/authelia-security.gpg] https://apt.authelia.com stable main\" > /etc/apt/sources.list.d/authelia.list",
|
||||||
|
|
@ -29,7 +38,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "packages | installation",
|
"name": "installation",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.apt": {
|
"ansible.builtin.apt": {
|
||||||
"update_cache": true,
|
"update_cache": true,
|
||||||
|
|
@ -40,6 +49,8 @@
|
||||||
"authelia"
|
"authelia"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "generate private key for signing OIDC JWTs",
|
"name": "generate private key for signing OIDC JWTs",
|
||||||
|
|
@ -53,7 +64,10 @@
|
||||||
"register": "temp_tls_result"
|
"register": "temp_tls_result"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration | compose script",
|
"name": "configuration",
|
||||||
|
"block": [
|
||||||
|
{
|
||||||
|
"name": "compose script",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.copy": {
|
"ansible.builtin.copy": {
|
||||||
"src": "conf-compose.py",
|
"src": "conf-compose.py",
|
||||||
|
|
@ -62,7 +76,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration | directories",
|
"name": "directories",
|
||||||
"become": true,
|
"become": true,
|
||||||
"loop": [
|
"loop": [
|
||||||
"/etc/authelia/conf.d",
|
"/etc/authelia/conf.d",
|
||||||
|
|
@ -74,7 +88,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration | main",
|
"name": "main",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.template": {
|
"ansible.builtin.template": {
|
||||||
"src": "conf-main.json.j2",
|
"src": "conf-main.json.j2",
|
||||||
|
|
@ -82,11 +96,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "configuration | compose",
|
"name": "compose",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.command": {
|
"ansible.builtin.command": {
|
||||||
"cmd": "/usr/bin/authelia-conf-compose --main-file-path=/etc/authelia/conf.d/main.json --clients-directory-path=/etc/authelia/conf.d/clients --output-format=yaml --output-path=/etc/authelia/configuration.yml"
|
"cmd": "/usr/bin/authelia-conf-compose --main-file-path=/etc/authelia/conf.d/main.json --clients-directory-path=/etc/authelia/conf.d/clients --output-format=yaml --output-path=/etc/authelia/configuration.yml"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "setup log directory",
|
"name": "setup log directory",
|
||||||
|
|
@ -97,7 +113,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "users | directory",
|
"name": "users",
|
||||||
|
"block": [
|
||||||
|
{
|
||||||
|
"name": "directory",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.file": {
|
"ansible.builtin.file": {
|
||||||
"state": "directory",
|
"state": "directory",
|
||||||
|
|
@ -105,7 +124,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "users | initial file",
|
"name": "initial file",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.template": {
|
"ansible.builtin.template": {
|
||||||
"src": "users.yml.j2",
|
"src": "users.yml.j2",
|
||||||
|
|
@ -114,13 +133,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "users | management script",
|
"name": "management script",
|
||||||
"become": true,
|
"become": true,
|
||||||
"ansible.builtin.copy": {
|
"ansible.builtin.copy": {
|
||||||
"src": "user-manage.py",
|
"src": "user-manage.py",
|
||||||
"dest": "/usr/bin/authelia-user-manage",
|
"dest": "/usr/bin/authelia-user-manage",
|
||||||
"mode": "0700"
|
"mode": "0700"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "apply",
|
"name": "apply",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
"name": "show vars",
|
"name": "show vars",
|
||||||
"ansible.builtin.debug": {
|
"ansible.builtin.debug": {
|
||||||
"var": "vars"
|
"var": "vars.cfg_nginx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue