ansible/Makefile

17 lines
244 B
Makefile

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