diff --git a/ansible.sh b/ansible.sh new file mode 100755 index 0000000000000000000000000000000000000000..46eb00d95df8cbdf28048dc0ea100fb63c29202e --- /dev/null +++ b/ansible.sh @@ -0,0 +1,12 @@ +ansible-galaxy install -r requirements.yml + +if [ -z ${1+x} ]; then + echo "var is unset"; + PLAYBOOK=site.yml +else + PLAYBOOK=$1 +fi + +# Agent running causes issues because SSH seems to prioritise those keys by default +SSH_AUTH_SOCK=/dev/null +ansible-playbook -v -i hosts.yml $PLAYBOOK