How to use custom private key with ansible?

52 views
Skip to first unread message

Andrew Pashkin

unread,
Jun 28, 2014, 4:51:39 PM6/28/14
to ansible...@googlegroups.com
What is the analog for :
ssh -i my_key.pem ubu...@123.123.123.123
in Ansible?
-- 
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew....@gmx.co.uk

Jim Richardson

unread,
Jun 28, 2014, 4:53:55 PM6/28/14
to ansible...@googlegroups.com
--private-key=PRIVATE_KEY_FILE
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/53AF2AC4.1030104%40gmx.co.uk.
> For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
Jun 28, 2014, 8:48:15 PM6/28/14
to ansible...@googlegroups.com
This also can be set on a per host or group basis with ansible_ssh_private_key_file, which can be useful if different pems are needed for different sets of machines.





Andrew Pashkin

unread,
Jul 2, 2014, 2:19:08 AM7/2/14
to ansible...@googlegroups.com
Thanks!

For more options, visit https://groups.google.com/d/optout.

-- 
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Reply all
Reply to author
Forward
0 new messages