khuedoan-homelab/metal/Makefile
Khue Doan 71e0828297 refactor(metal): remove shutdown playbook
Use ansible-console instead
2022-02-19 10:52:52 +07:00

22 lines
297 B
Makefile

.POSIX:
env ?= "prod"
default: boot cluster
~/.ssh/id_ed25519:
ssh-keygen -t ed25519 -f "$@"
boot: ~/.ssh/id_ed25519
ansible-playbook \
--inventory inventories/${env}.yml \
boot.yml
cluster:
ansible-playbook \
--inventory inventories/${env}.yml \
cluster.yml
vagrant:
vagrant up