mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 16:04:31 +00:00
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:
parent
a6cc1173e9
commit
772a36294e
@ -18,5 +18,7 @@ ptr_records:
|
||||
fqdn: "pi.prole.org"
|
||||
- last_octet: "4"
|
||||
fqdn: "raspberry.prole.org"
|
||||
- last_octet: "10" # Placeholder, adjust if known
|
||||
fqdn: "retropie.prole.org"
|
||||
|
||||
rsyslog_server: myrddin.prole.org
|
||||
|
||||
@ -8,7 +8,17 @@ myrddin.prole.org
|
||||
[retropie]
|
||||
retropie.prole.org
|
||||
|
||||
[raspberry]
|
||||
raspberry.prole.org
|
||||
|
||||
[k3s_hosts]
|
||||
pi.prole.org
|
||||
myrrdin.prole.org
|
||||
retropie.prole.org
|
||||
|
||||
[Linux_Hosts:children]
|
||||
pihole
|
||||
ad_dc
|
||||
retropie
|
||||
raspberry
|
||||
k3s_hosts
|
||||
|
||||
@ -15,3 +15,15 @@
|
||||
become: true
|
||||
roles:
|
||||
- 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user