[fix] user file handling

This commit is contained in:
roydfalk 2024-10-26 13:00:34 +02:00
parent 4875717b94
commit a1ff1026c0
2 changed files with 12 additions and 3 deletions

View file

@ -1,10 +1,10 @@
{ {
"var_arc_core_user": "authelia", "var_arc_core_user": "arc",
"var_arc_core_directory": "/opt/arc", "var_arc_core_directory": "/opt/arc",
"var_arc_core_git_repository_url": "https://forgejo.linke.sx/arc/core", "var_arc_core_git_repository_url": "https://forgejo.linke.sx/arc/core",
"var_arc_core_git_reference": "master", "var_arc_core_git_reference": "main",
"var_arc_core_server_host": "::", "var_arc_core_server_host": "::",
"var_arc_core_server_port": 7463, "var_arc_core_server_port": 7463,
"var_arc_core_authentication_hash_salt": "REPLACE_ME", "var_arc_core_authentication_hash_salt": "REPLACE_ME",
"var_arc_core_authelia_usersfile_path": "/var/authelia/users.yaml" "var_arc_core_authelia_usersfile_path": "/var/authelia/users.yml"
} }

View file

@ -49,6 +49,15 @@
"cmd": "tools/deploy localhost --build-directory=/tmp/arc --target-directory={{var_arc_core_directory}}" "cmd": "tools/deploy localhost --build-directory=/tmp/arc --target-directory={{var_arc_core_directory}}"
} }
}, },
{
"name": "adjust user file",
"become": true,
"ansible.builtin.file": {
"path": "{{var_arc_core_authelia_usersfile_path}}",
"group": "{{var_arc_core_authelia_user}}",
"mode": "g+w"
}
},
{ {
"name": "configuration", "name": "configuration",
"become": true, "become": true,