document Makefile variables

This commit is contained in:
Kyle Isom 2023-04-11 13:24:55 -07:00
parent dacef969e9
commit 3bc45140be
2 changed files with 9 additions and 8 deletions

View File

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