docs(user_management): name the sshd role without its FQCN
The README and the comments of tasks/bootstrap.yml, tasks/handback.yml and tasks/lock_root.yml named mortis.kamino.sshd, which the role-independence test refuses in a role's docs. They now name the sshd role (of this Collection), as the ufw role does for system_baseline. The role's own FQCN in its README and scenario stays, as in sshd and ufw. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
2713753039
commit
f290b9f151
4 files changed
+6
-6
No files matched your search
@@ -11,7 +11,7 @@
|
||||
# connection (ansible_ssh_private_key_file). It is for a new LXC: the provisioning step gives root
|
||||
# that key and stock Ubuntu sshd (PermitRootLogin prohibit-password) admits root by key on first
|
||||
# boot. A new VM never needs it (cloud-init creates the configured user with the key; root does not
|
||||
# get it), and a fresh Proxmox node gets the key from the operator. Once mortis.kamino.sshd has run
|
||||
# get it), and a fresh Proxmox node gets the key from the operator. Once the sshd role has run
|
||||
# (PermitRootLogin no on ubuntu_lxc/ubuntu_vm), root is refused: a host whose configured user broke
|
||||
# later is recovered from its Proxmox node (pct enter, qm terminal or the console), not here.
|
||||
# tasks/handback.yml switches the connection back to the configured user after it is created.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# The root fallback in bootstrap.yml sets ansible_ssh_user as a fact, and a fact lasts for the
|
||||
# whole playbook run, not only this play. mortis.kamino.sshd later refuses root (PermitRootLogin
|
||||
# whole playbook run, not only this play. The sshd role later refuses root (PermitRootLogin
|
||||
# no), so a later play that still connected as root would only get in while ssh's ControlPersist
|
||||
# connection lived. Switch back to the configured user, now that it exists with its keys, and
|
||||
# prove the new connection works. No meta: reset_connection: it ignores `when` (so it ran on
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# authorized_keys are not passed and stay as they are.
|
||||
#
|
||||
# This does not break the root fallback in tasks/bootstrap.yml: it logs root in with the deploy
|
||||
# key, never a password, and sshd with UsePAM yes (the Ubuntu default and the mortis.kamino.sshd
|
||||
# key, never a password, and sshd with UsePAM yes (the Ubuntu default and the sshd role's
|
||||
# setting) does not treat a "!" hash as a locked account for key authentication. Recovery from the
|
||||
# host (pct enter, console as root) needs no password either.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user