Created
July 20, 2016 18:12
-
-
Save arbabnazar/e965b94c2159082c93bad6b471b9c7d6 to your computer and use it in GitHub Desktop.
add the github rsa public key to the known hosts
This file contains 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: Tell the host about our servers it might want to ssh to | |
known_hosts: | |
path: '/etc/ssh/ssh_known_hosts' | |
name: 'github.com' | |
key: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment