Implement previous roles

This commit is contained in:
flyingscorpio@clevo 2022-03-17 22:15:26 +01:00
parent dce4bb46be
commit 56f72c385e
2 changed files with 4 additions and 0 deletions

View file

@ -2,3 +2,6 @@
ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh
echo $@ >> .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

View file

@ -10,3 +10,4 @@ So `make vim` will call `ansible-playbook` with the `vim` tag.
The Makefile also includes vault password, which is retrieved via `password-store` with the `git-vault-password.sh` script.
The roles called are logged to `.roles_played`.
They can then be called again by `make previous`, for example to update the system according to the playbook.