ansible/Makefile

18 lines
379 B
Makefile
Raw Normal View History

2023-04-11 20:24:55 +00:00
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
2023-04-11 02:55:24 +00:00
all: deploy
check:
2023-04-11 20:24:55 +00:00
ansible-playbook -i $I -l $L $C $K --syntax-check $V $O $P
2023-04-11 02:55:24 +00:00
deploy:
2023-04-11 20:24:55 +00:00
ansible-playbook -i $I -l $L $C $K $V $O $P
2023-04-11 02:55:24 +00:00
.PHONY: all check deploy