khuedoan-homelab/test/Makefile
2021-02-21 20:19:00 +07:00

29 lines
404 B
Makefile

.POSIX:
default: init snapshot metal infra
init:
vagrant up
snapshot:
vagrant snapshot save init
metal:
python3 -m venv .venv \
&& . .venv/bin/activate \
&& pip3 install --upgrade pip \
&& pip3 install -r requirements.txt \
&& ansible-playbook --inventory hosts.ini playbook.yml
infra:
echo infra
stop:
vagrant halt
restore:
vagrant snapshot restore init
clean:
vagrant destroy -f