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