Add recipe for previous_tags in Makefile
This commit is contained in:
parent
37387af9c2
commit
c54aa8656e
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -1,7 +1,9 @@
|
||||||
|
previous_tags=$(shell cat .roles_played | tr '\n' ',')
|
||||||
|
|
||||||
%:
|
%:
|
||||||
ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh
|
ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh
|
||||||
@echo $@ | grep -v all >> .roles_played
|
@echo $@ | grep -v all >> .roles_played
|
||||||
@cat .roles_played | sort | uniq > temp && mv temp .roles_played
|
@cat .roles_played | sort | uniq > temp && mv temp .roles_played
|
||||||
|
|
||||||
previous:
|
previous:
|
||||||
ansible-playbook playbook.yml --ask-become-pass -t ${previous_tags} --vault-password-file=get-vault-password.sh
|
ansible-playbook playbook.yml --ask-become-pass -t '${previous_tags}' --vault-password-file=get-vault-password.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue