mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-09 15:29:44 +07:00
refactor(metal): split main playbook to boot and cluster
Easier to only apply k3s config
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
.POSIX:
|
||||
|
||||
default: run
|
||||
default: boot cluster
|
||||
|
||||
run:
|
||||
boot:
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
main.yml
|
||||
|
||||
cluster:
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
cluster.yml
|
||||
|
||||
shutdown:
|
||||
ansible-playbook \
|
||||
--inventory hosts.yml \
|
||||
|
@ -8,8 +8,3 @@
|
||||
gather_facts: no
|
||||
roles:
|
||||
- wake
|
||||
|
||||
- name: Create Kubernetes cluster
|
||||
hosts: metal
|
||||
roles:
|
||||
- k3s
|
4
metal/cluster.yml
Normal file
4
metal/cluster.yml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Create Kubernetes cluster
|
||||
hosts: metal
|
||||
roles:
|
||||
- k3s
|
Reference in New Issue
Block a user