ansible/inventories/hosts.yml

113 lines
3.6 KiB
YAML
Raw Normal View History

2026-10-11 22:29:14 +02:00
---
# Every machine of the homelab. Host names are the Proxmox guest names.
# Groups by kind:
# hypervisors the bare-metal Proxmox host
# lxc Proxmox containers: share the host kernel, no guest agent,
# no kernel modules, never need a reboot for a kernel update
# vm Proxmox VMs (QEMU): own kernel, qemu-guest-agent
# external machines outside the Proxmox host (ViaRézo cloud VM)
# Groups by role: k3s (k3s_masters, k3s_workers), all of them VMs.
# proxmox_vmid matches `pct list` / `qm list`. IPs: 1NN -> 10.0.0.(NN+10),
# except k3s (VMID = last octet) and 110/250 (.250/.251).
all:
children:
hypervisors:
hosts:
proxmox:
ansible_host: 10.0.0.1
2026-10-11 23:02:48 +02:00
description: Proxmox VE hypervisor
2026-10-11 22:29:14 +02:00
lxc:
hosts:
caddy:
ansible_host: 10.0.0.10
2026-10-11 23:02:48 +02:00
description: Caddy reverse proxy, every vhost (DNS-01)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 100
crowdsec:
ansible_host: 10.0.0.11
2026-10-11 23:02:48 +02:00
description: CrowdSec LAPI
2026-10-11 22:29:14 +02:00
proxmox_vmid: 101
cloud:
ansible_host: 10.0.0.12
2026-10-11 23:02:48 +02:00
description: Nextcloud AIO (Docker)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 102
vault:
ansible_host: 10.0.0.13
2026-10-11 23:02:48 +02:00
description: Vaultwarden (Docker)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 103
forgejo:
ansible_host: 10.0.0.14
2026-10-11 23:02:48 +02:00
description: Forgejo git, SSH on 2222
2026-10-11 22:29:14 +02:00
proxmox_vmid: 104
restic:
ansible_host: 10.0.0.15
2026-10-11 23:02:48 +02:00
description: restic rest-server, backup target
2026-10-11 22:29:14 +02:00
proxmox_vmid: 105
etherpad:
ansible_host: 10.0.0.16
2026-10-11 23:02:48 +02:00
description: Etherpad + Postgres
2026-10-11 22:29:14 +02:00
proxmox_vmid: 106
jellyfin:
ansible_host: 10.0.0.18
2026-10-11 23:02:48 +02:00
description: Jellyfin, media on /hdd-mirror/media
2026-10-11 22:29:14 +02:00
proxmox_vmid: 108
uptime-kuma:
ansible_host: 10.0.0.19
2026-10-11 23:02:48 +02:00
description: Uptime Kuma (Docker), status.un-oeil.fr
2026-10-11 22:29:14 +02:00
proxmox_vmid: 109
wireguard: # no SSH login, reached through `pct exec` (host_vars/wireguard.yml)
ansible_host: 10.0.0.1
2026-10-11 23:02:48 +02:00
description: WireGuard hub, tunnel 10.10.10.0/24
2026-10-11 22:29:14 +02:00
proxmox_vmid: 110
leaderboard:
ansible_host: 10.0.0.251
2026-10-11 23:02:48 +02:00
description: Leaderboard (Docker)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 250
vm:
hosts:
pelican-panel:
ansible_host: 10.0.0.17
2026-10-11 23:02:48 +02:00
description: Pelican Panel + local Wings
2026-10-11 22:29:14 +02:00
proxmox_vmid: 107
children:
k3s:
k3s:
children:
k3s_masters:
hosts:
k3s-master-1:
ansible_host: 10.0.0.131
2026-10-11 23:02:48 +02:00
description: k3s server (cluster-init, etcd)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 131
k3s_cluster_init: true # bootstraps etcd, the others join it
k3s-master-2:
ansible_host: 10.0.0.132
2026-10-11 23:02:48 +02:00
description: k3s server (etcd)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 132
k3s-master-3:
ansible_host: 10.0.0.133
2026-10-11 23:02:48 +02:00
description: k3s server (etcd)
2026-10-11 22:29:14 +02:00
proxmox_vmid: 133
k3s_workers:
hosts:
k3s-worker-1:
ansible_host: 10.0.0.141
2026-10-11 23:02:48 +02:00
description: k3s agent + Longhorn
2026-10-11 22:29:14 +02:00
proxmox_vmid: 141
k3s-worker-2:
ansible_host: 10.0.0.142
2026-10-11 23:02:48 +02:00
description: k3s agent + Longhorn
2026-10-11 22:29:14 +02:00
proxmox_vmid: 142
k3s-worker-3:
ansible_host: 10.0.0.143
2026-10-11 23:02:48 +02:00
description: k3s agent + Longhorn
2026-10-11 22:29:14 +02:00
proxmox_vmid: 143
external:
hosts:
2026-10-11 23:02:48 +02:00
viarezo:
2026-10-11 22:29:14 +02:00
ansible_host: 10.10.10.3 # through the WireGuard tunnel
2026-10-11 23:02:48 +02:00
description: "ViaRézo cloud VM: Wings (viarezo node), Overleaf"