proxmox ansible bootstrapping
This commit is contained in:
parent
2d1a363a50
commit
bdf3bc6b02
20 changed files with 481 additions and 4 deletions
24
playbooks/bootstrap.yml
Normal file
24
playbooks/bootstrap.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
- 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: "{{ 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: cloudinit
|
||||
# - role: networking # Uncomment if you've populated this role
|
||||
Loading…
Add table
Add a link
Reference in a new issue