From c54aa8656ed1833cb2184c021025ad5144d72c0b Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Thu, 30 Jun 2022 21:05:46 +0200 Subject: [PATCH] Add recipe for previous_tags in Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f55905..cd81fc9 100644 --- a/Makefile +++ b/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 @echo $@ | grep -v all >> .roles_played @cat .roles_played | sort | uniq > temp && mv temp .roles_played 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