fix(user_management): hand back to the created user and refuse a mismatched fallback
The handback switched the connection to ansible_user, while the role creates user_management_ansible_user.name. When the two differed, the root fallback created a user nobody connects as, and the handback then failed after the changes made as root, or later plays connected as the wrong user. The fallback now asserts, before switching to root, that the primary user's name equals ansible_user (set as a variable), and the handback switches to the user the role created. No change where the names are equal (the default). Also name user_management as a user of ansible.posix in the galaxy.yml comment. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
da87a7e141
commit
ce537fc6b4
5 files changed
+20
-4
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ homepage: https://git.rkdr.net/mortis/kamino
|
||||
issues: https://git.rkdr.net/mortis/kamino/issues
|
||||
# Lower bounds are the versions CI tests against; no upper bound, so a consumer's
|
||||
# newer pin does not conflict. community.general is used by system_baseline and ufw,
|
||||
# ansible.posix by system_baseline.
|
||||
# ansible.posix by system_baseline and user_management.
|
||||
dependencies:
|
||||
community.general: ">=14.0.0"
|
||||
ansible.posix: ">=2.2.0"
|
||||
|
||||
Reference in new issue
Block a user