Implement previous roles
This commit is contained in:
parent
dce4bb46be
commit
56f72c385e
2 changed files with 4 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue