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
L := "$(shell hostname -s)"
C := -c local
K := -K
P := site.yml
V := -vvv
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 $P
ansible-playbook -i $I -l $L $C $K --syntax-check $V $O $P
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