diff options
-rwxr-xr-x | myansible.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/myansible.sh b/myansible.sh index fbe4e9b..9148348 100755 --- a/myansible.sh +++ b/myansible.sh @@ -2,10 +2,12 @@ ## wrapper for ansible, ensuring password is provided +if ! ssh-add -l >/dev/null; then ssh-add ~/.ssh/ansible ssh-add ~/.ssh/id_hetz ssh-add ~/.ssh/id_netcup ssh-add ~/.ssh/id_rsa ssh-add ~/.ssh/firstroot +fi ansible-playbook --ask-vault-pass -b -e '@passwd.yml' $@ |