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 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
27 lines
793 B
YAML
27 lines
793 B
YAML
---
|
|
user_management_bootstrap: true
|
|
user_management_install_sudo: true
|
|
|
|
user_management_disable_cloud_init: true
|
|
user_management_authoritative: true
|
|
|
|
# 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)
|
|
user_management_ansible_user:
|
|
name: "{{ ansible_user }}"
|
|
password_hash: "{{ user_management_become_password_hashed | mandatory }}"
|
|
groups: ["sudo"]
|
|
shell: /bin/bash
|
|
create_home: true
|
|
state: present
|
|
|
|
user_management_default_authorized_keys: []
|
|
# Additional users
|
|
user_management_other_users: []
|
|
# Removal behavior
|
|
user_management_remove_home: true
|