khuedoan-homelab/metal/Makefile

30 lines
419 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}.ini \
boot.yml
cluster:
ansible-playbook \
--inventory inventories/${env}.ini \
cluster.yml
shutdown:
ansible-playbook \
--inventory inventories/${env}.ini \
shutdown.yml
lint:
ansible-lint --project-dir .
vagrant:
vagrant up