Add get-vault-password.sh script to avoid passing in cli

This commit is contained in:
flyingscorpio@clevo 2022-02-26 10:04:55 +01:00
parent b513f0fe93
commit 970cdb1bd0
3 changed files with 4 additions and 2 deletions

View file

@ -1,2 +1,2 @@
%: %:
ansible-playbook playbook.yml --ask-become-pass --ask-vault-pass -t $@ ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh

3
get-vault-password.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
pass show self/setup-cockpit-ansible-vault

1
todo
View file

@ -4,4 +4,3 @@ add upstream to i3blocks-contrib repo
hangs when wrong become password hangs when wrong become password
only ask vault if needed