From a1645040aefdc01788e0437bac2a3328aefb8a82 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 16 Nov 2026 17:15:21 +0000 Subject: [PATCH] docs(user_management): say how the root password lock works in the defaults comment The comment said usermod -L, but the role replaces the shadow field with "!" and drops the old hash, which usermod -L would keep. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- roles/user_management/defaults/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/user_management/defaults/main.yml b/roles/user_management/defaults/main.yml index 7612d25..0d60f62 100644 --- a/roles/user_management/defaults/main.yml +++ b/roles/user_management/defaults/main.yml @@ -5,8 +5,9 @@ user_management_install_sudo: true user_management_disable_cloud_init: true user_management_authoritative: true -# Lock root's password (usermod -L). Off by default: on a Proxmox node root's password is the -# web UI and PAM login. +# Lock root's password: replace its shadow field with "!", removing the old hash (unlike +# usermod -L, which keeps it). Off by default: on a Proxmox node root's password is the web UI +# and PAM login. user_management_lock_root_password: false # Primary ansible user (ALWAYS managed)