summaryrefslogtreecommitdiff
path: root/myansible.sh
blob: 9148348fecda5a0d365a73b118b511611148486f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
fi

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