ansible/Makefile

16 lines
228 B
Makefile
Raw Normal View History

2023-04-11 02:55:24 +00:00
I := inventory
L := "$(shell hostname -s)"
C := -c local
K := -K
P := site.yml
all: deploy
check:
ansible-playbook -i $I -l $L $C $K --syntax-check $P
deploy:
ansible-playbook -i $I -l $L $C $K $P
.PHONY: all check deploy