ansible/Makefile

17 lines
244 B
Makefile
Raw Normal View History

2023-04-11 02:55:24 +00:00
I := inventory
L := "$(shell hostname -s)"
C := -c local
K := -K
P := site.yml
V := -vvv
2023-04-11 02:55:24 +00:00
all: deploy
check:
ansible-playbook -i $I -l $L $C $K --syntax-check $V $P
2023-04-11 02:55:24 +00:00
deploy:
ansible-playbook -i $I -l $L $C $K $V $P
2023-04-11 02:55:24 +00:00
.PHONY: all check deploy