#!/bin/bash -x ## wrapper for ansible, ensuring password is provided if ! ssh-add -l >/dev/null; then ssh-add ~/.ssh/ansible \ ~/.ssh/id_hetz \ ~/.ssh/id_netcup \ ~/.ssh/id_rsa \ ~/.ssh/firstroot \ ~/.ssh/gcloud \ ~/.ssh/virtuacloud \ ~/.ssh/ifog_otter fi ./venv/bin/ansible-playbook --ask-vault-pass -e '@passwd.yml' $@ # -B / -P for background/polling