Skip to content

Instantly share code, notes, and snippets.

@yaegashi
Created October 14, 2015 12:05
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaegashi/9660f147cc8a5dfff339 to your computer and use it in GitHub Desktop.
Save yaegashi/9660f147cc8a5dfff339 to your computer and use it in GitHub Desktop.
Ansible SSH connection using paramiko
---
- hosts: all
connection: paramiko
vars:
ansible_ssh_private_key_file: /path/to/private_key
ansible_ssh_pass: passphrase_for_private_key
tasks:
- debug:
msg: hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment