mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:14:33 +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"
|
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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user