refactor(metal): split main playbook to boot and cluster

Easier to only apply k3s config
This commit is contained in:
Khue Doan
2021-11-25 18:26:44 +07:00
parent 22bf3f6fd7
commit d808ae96dd
3 changed files with 11 additions and 7 deletions

View File

@ -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 \

View File

@ -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
View File

@ -0,0 +1,4 @@
- name: Create Kubernetes cluster
hosts: metal
roles:
- k3s