Created
May 11, 2014 20:04
-
-
Save wfaler/00ea10ac0ca0938cf352 to your computer and use it in GitHub Desktop.
Ensure your Ansible script doesn't hang on doing ssh operations (like pulling from github)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: ensure known hosts | |
shell: touch ~/.ssh/known_hosts creates=~/.ssh/known_hosts | |
- name: remove github.com from known host | |
shell: ssh-keygen -R github.com | |
- name: ensure github.com in known host | |
shell: ssh-keyscan -H github.com > ~/.ssh/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment