ansible: Add example
This commit is contained in:
43
ansible/inventory/00_static_hosts.yml.example
Normal file
43
ansible/inventory/00_static_hosts.yml.example
Normal file
@@ -0,0 +1,43 @@
|
||||
# ================================================================
|
||||
# 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
|
||||
Reference in New Issue
Block a user