Skip to content

Instantly share code, notes, and snippets.

@pserrano
Last active January 15, 2018 09:43
Show Gist options
  • Save pserrano/99976f74b1a90ef83b4b18bba82b7341 to your computer and use it in GitHub Desktop.
Save pserrano/99976f74b1a90ef83b4b18bba82b7341 to your computer and use it in GitHub Desktop.
Ssh into a vagrant machine with ansible
#search ssh file key of machine with 'vagrant ssh-config | grep IdentityFile'
192.168.50.5 ansible_ssh_port=22 ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment