๐Ÿš€ Bootstrap TrueNAS for Ansible

Prepare an already-installed TrueNAS 25.10+ system for configure_truenas.yml. This is not an operating-system installation or storage-pool provisioning procedure. See the TrueNAS Role Contributor Guide.

๐Ÿ“‹ Prerequisites

๐Ÿ“ Procedure to Complete

  1. Document how to enable SSH and create or prepare the inventory connection account using the installed TrueNAS UI.
  2. Install and verify the controllerโ€™s public key and the NAS host-key fingerprint through a trusted channel.
  3. Grant only the approved privilege needed to become root for local middleware access, without locking out the current administrator.
  4. Update the inventory and host variables, preserving the existing naming and encrypted secret conventions.
  5. Validate preflight before selecting individual configuration stages; do not immediately run all configured stages.

๐Ÿ”Ž Initial Validation

Run from the repository root after connection preparation:

ansible-inventory -i inventory/truenas/inventory.ini --graph
ansible-playbook -i inventory/truenas/inventory.ini playbooks/truenas/configure_truenas.yml --limit truenas-01 --syntax-check --ask-vault-pass
ansible-playbook -i inventory/truenas/inventory.ini playbooks/truenas/configure_truenas.yml --limit truenas-01 --tags truenas_preflight --ask-vault-pass

The final command connects to the NAS and performs read-only readiness, version, and administrator checks. Add -k for an SSH password or -K for a become password when required; neither is the vault password. The role uses local middleware over SSH, not a web UI password or HTTP API key.

โœ… Verification and Recovery