summaryrefslogtreecommitdiff
path: root/myansible.sh
blob: ff4d960053cb25010b74fc2d5e6355852b431a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -x

## 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
ssh-add ~/.ssh/gcloud
fi

ansible-playbook --ask-vault-pass -b -e '@passwd.yml' $@