44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
# ================================================================
|
|
# Static inventory for the core Homelab infrastructure
|
|
# These machines are configured manually and are not
|
|
# destroyed/recreated by Terraform.
|
|
# ================================================================
|
|
|
|
all:
|
|
children:
|
|
# -------------------------------------------
|
|
# Group for our DNS servers
|
|
# -------------------------------------------
|
|
dns_servers:
|
|
hosts:
|
|
dns.example.com:
|
|
ansible_host: 192.168.1.10
|
|
ansible_user: admin
|
|
|
|
# -------------------------------------------
|
|
# Group for our Proxmox hypervisors
|
|
# -------------------------------------------
|
|
proxmox_hosts:
|
|
hosts:
|
|
pve01.example.com:
|
|
ansible_host: 192.168.1.20
|
|
ansible_user: root
|
|
|
|
# -------------------------------------------
|
|
# Group for Lab machines (for lab DNS)
|
|
# -------------------------------------------
|
|
lab:
|
|
hosts:
|
|
pve01.example.com: {}
|
|
|
|
# ================================================================
|
|
# Best practice: add a variable for the Python interpreter
|
|
# to avoid ambiguities between python2 and python3.
|
|
# ================================================================
|
|
homelab_core:
|
|
children:
|
|
dns_servers:
|
|
proxmox_hosts:
|
|
vars:
|
|
ansible_python_interpreter: /usr/bin/python3
|