Mark
unread,Jul 29, 2013, 5:06:55 AM7/29/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
I want to be able to set the path to the private SSH key in a playbook so I don't need to pass it on the command line all the time.
My use-case is having 10+ AWS accounts for dev/test/prod, etc. with separate keys for each. I'm not using EIPs so I can't use host vars. Instead, in my plays I pass an 'environment' variable that specifies whether I'm in dev01, test02, etc., and variables for the relevant environment get loaded using vars_files (I'm using ansible for provisioning new instances and snapshotting them as AMIs).
I know how to set the SSH user in playbooks, but how can I set the private SSH key path as well?
Mark