document Makefile variables
This commit is contained in:
parent
dacef969e9
commit
3bc45140be
17
Makefile
17
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue