πŸ‘€ Manage TrueNAS Users and Credentials

Maintain existing local accounts, supplementary memberships, and credentials associated with configure_truenas.yml. This does not manage Active Directory user lifecycles. See Add TrueNAS Local Users for initial creation.

πŸ“‹ Prerequisites

πŸ“ Procedure to Complete

  1. Capture current non-secret account settings and approved desired memberships.
  2. Document membership changes using the complete desired groups list rather than an append-only assumption.
  3. Define a deliberate UI or validated middleware password-rotation workflow and update vault/consumers without exposing the secret.
  4. Specify access revocation across SMB sessions, SSH keys, groups, application credentials, and other active consumers.
  5. Treat account deletion and numeric-ID migration as separate approved operations with file-ownership review.

πŸ”Ž Ansible Integration

ansible-playbook -i inventory/truenas/inventory.ini playbooks/truenas/configure_truenas.yml --limit truenas-01 --tags truenas_users --list-tasks --ask-vault-pass

This lists all configured groups/users plus preflight. Review the defaults and user tasks: password and primary-group/UID settings are normally create-only. Changing vault alone does not rotate an existing password. The role resends a configured password when smb changes; validate that transition deliberately.

Removing an account from the list does not delete it. state: absent is destructive, and delete_group defaults to true. password_disabled: true is not compatible with smb: true and must not be presented as a universal SMB revocation mechanism.

βœ… Verification and Recovery