summaryrefslogtreecommitdiff
path: root/myansible.sh
diff options
context:
space:
mode:
authoruvok cheetah2025-02-09 14:05:05 +0100
committeruvok cheetah2025-02-09 14:05:05 +0100
commit54baac494de94ecf37c7369d266078a8a8c2afb3 (patch)
tree6b9dede00e1ab01e634c07bf5d3bfad17fe68403 /myansible.sh
parent9f551a3822b32a10881f894be518a6fa31d5ac23 (diff)
Move script to templates
Diffstat (limited to 'myansible.sh')
-rwxr-xr-xmyansible.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/myansible.sh b/myansible.sh
index 3af898d..1e4d15b 100755
--- a/myansible.sh
+++ b/myansible.sh
@@ -3,12 +3,15 @@
## 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
+ssh-add ~/.ssh/ansible \
+ ~/.ssh/id_hetz \
+ ~/.ssh/id_netcup \
+ ~/.ssh/id_rsa \
+ ~/.ssh/firstroot \
+ ~/.ssh/gcloud \
+ ~/.ssh/virtuacloud \
+ ~/.ssh/ifog_otter
fi
-ansible-playbook --ask-vault-pass -e '@passwd.yml' $@
+./venv/bin/ansible-playbook --ask-vault-pass -e '@passwd.yml' $@
+# -B / -P for background/polling