Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Created July 6, 2015 18:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/4c40db99f361e2176345 to your computer and use it in GitHub Desktop.
Save odyssey4me/4c40db99f361e2176345 to your computer and use it in GitHub Desktop.
when working with ansible <v2, use this to keep your sanity
# change into the root of your repo
# resurrect the ssh_retry plugin for your sanity
mkdir -p playbooks/plugins/connection_plugins/
wget -O playbooks/plugins/connection_plugins/ssh_retry.py \
https://raw.githubusercontent.com/stackforge/os-ansible-deployment/juno/rpc_deployment/plugins/connection_plugins/ssh_retry.py
sed -i '/lookup_plugins/a \ \
# ssh_retry connection plugin \
connection_plugins = plugins/connection_plugins \
transport = ssh_retry' playbooks/ansible.cfg
# now you can execute your playbooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment