mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-12 16:59:23 +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:
|
.POSIX:
|
||||||
|
|
||||||
default: run
|
default: boot cluster
|
||||||
|
|
||||||
run:
|
boot:
|
||||||
ansible-playbook \
|
ansible-playbook \
|
||||||
--inventory hosts.yml \
|
--inventory hosts.yml \
|
||||||
main.yml
|
main.yml
|
||||||
|
|
||||||
|
cluster:
|
||||||
|
ansible-playbook \
|
||||||
|
--inventory hosts.yml \
|
||||||
|
cluster.yml
|
||||||
|
|
||||||
shutdown:
|
shutdown:
|
||||||
ansible-playbook \
|
ansible-playbook \
|
||||||
--inventory hosts.yml \
|
--inventory hosts.yml \
|
||||||
|
@ -8,8 +8,3 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- wake
|
- 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