khuedoan-homelab/metal/Makefile
2022-02-25 01:38:53 +07:00

26 lines
363 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
console:
ansible-console \
--inventory inventories/${env}.yml
vagrant:
vagrant up