- name: Proxmox Home Server Bootstrapping hosts: proxmox gather_facts: true # We'll gather facts manually later if needed become: true # Use sudo for all tasks vars: ansible_become_pass: "{{ vault_proxmox_initial_root_password }}" # Use the vaulted root password for initial connection pre_tasks: - name: Wait for SSH to be available ansible.builtin.wait_for_connection: timeout: 300 # Adjust as needed - name: Check hostname to ensure it's not localhost ansible.builtin.fail: msg: "Hostname is still 'localhost'. Please set a proper hostname on Proxmox first before running this playbook." when: ansible_hostname == 'localhost' roles: - role: common - role: proxmox_setup - role: ci_user - role: proxmox_api # - role: cloudinit # - role: networking # Uncomment if you've populated this role