ansible: configure K3s cluster and update inventory

- Added `k3s_hosts` group to the inventory and associated host entries.
- Updated `site.yml` to include roles for disabling swap and setting up the K3s cluster.
This commit is contained in:
chrisfu 2026-01-21 10:23:05 -08:00
parent a6cc1173e9
commit 772a36294e
3 changed files with 24 additions and 0 deletions

View File

@ -18,5 +18,7 @@ ptr_records:
fqdn: "pi.prole.org" fqdn: "pi.prole.org"
- last_octet: "4" - last_octet: "4"
fqdn: "raspberry.prole.org" fqdn: "raspberry.prole.org"
- last_octet: "10" # Placeholder, adjust if known
fqdn: "retropie.prole.org"
rsyslog_server: myrddin.prole.org rsyslog_server: myrddin.prole.org

View File

@ -8,7 +8,17 @@ myrddin.prole.org
[retropie] [retropie]
retropie.prole.org retropie.prole.org
[raspberry]
raspberry.prole.org
[k3s_hosts]
pi.prole.org
myrrdin.prole.org
retropie.prole.org
[Linux_Hosts:children] [Linux_Hosts:children]
pihole pihole
ad_dc ad_dc
retropie retropie
raspberry
k3s_hosts

View File

@ -15,3 +15,15 @@
become: true become: true
roles: roles:
- rsyslog - rsyslog
- name: Disable swap on K3s hosts
hosts: k3s_hosts
become: true
roles:
- no_swap
- name: K3s Cluster Setup
hosts: k3s_hosts
become: true
roles:
- k3s