ansible/Makefile

18 lines
379 B
Makefile

I := inventory # inventory file
L := "$(shell hostname -s)" # host limit
C := -c local # connection
K := -K # prompt for sudo password
O := # additional options
P := site.yml # playbook
V := -vvv # verbosity
all: deploy
check:
ansible-playbook -i $I -l $L $C $K --syntax-check $V $O $P
deploy:
ansible-playbook -i $I -l $L $C $K $V $O $P
.PHONY: all check deploy