Yep, see http://ansibleworks.com/docs/intro_configuration.html#ssh-args
On Sat, Dec 7, 2013 at 10:40 PM, Jasdeep Singh <[email protected]>wrote: > SWEEEEETTTT! This worked for me too! Anyway I can add this to my > ansible.cfg permanently? > > > On Friday, 9 August 2013 03:53:52 UTC-4, Rodney Quillo wrote: >> >> For ansible, ssh-add to load ssh keys in your host machine first. >> Then use "ssh" as connection type with forwarding enabled. >> >> Such as: >> $ ssh-add >> $ export ANSIBLE_TRANSPORT="ssh" >> $ export ANSIBLE_SSH_ARGS="-o ForwardAgent=yes" >> >> See manual for ssh-add for running the agent. >> >> Rodney >> >> On Friday, August 9, 2013 6:09:14 AM UTC+8, Daniel Shapiro wrote: >>> >>> Hi Lorin, >>> >>> I'm trying to set this up exactly as you describe, but have not had any >>> luck unfortunately :( >>> >>> My ~/.ssh/config works fine when I use ssh manually - I can type "ssh >>> my_host_shortname" and connect to my machine and then I can pull from >>> github because I have ForwardAgent properly set. >>> >>> But I've seen zero evidence that ansible is using any information in >>> ~/.ssh/config >>> >>> Here's my ansible inventory file: http://pastebin.com/6e7Ue2VA >>> >>> I can run "ansible all -m ping" and it works fine, but if I run "ansible >>> all -a 'ssh -T [email protected]'" then I get a permission denied error >>> because my ssh agent was not forwarded. >>> >>> Any ideas? >>> >>> Thank you! >>> >>> - Daniel >>> >>> On Monday, July 15, 2013 6:23:48 PM UTC-7, Lorin Hochstein wrote: >>>> >>>> You're in luck! Mac OS X has great support for ssh agent forwarding, it >>>> automatically starts up an ssh agent for you when you first log in to your >>>> machine. You can check it's running by doing: >>>> >>>> echo $SSH_AUTH_SOCK >>>> >>>> You should see something like: >>>> /tmp/launch-MYGNdH/Listeners >>>> >>>> >>>> You'll need to add "ForwardAgent yes" to your ~/.ssh/config file on >>>> your mac. >>>> >>>> Lorin >>>> >>>> >>>> >>>> On Mon, Jul 15, 2013 at 8:55 PM, Eric Palmer <[email protected]>wrote: >>>> >>>>> thanks >>>>> >>>>> I have no idea how to do that but tomorrow I will search google and >>>>> figure it out. I use mac osx. >>>>> >>>>> thanks >>>>> >>>>> Loving ansible.... >>>>> >>>>> Eric >>>>> >>>>> >>>>> On Mon, Jul 15, 2013 at 8:54 PM, Lorin Hochstein < >>>>> [email protected]> wrote: >>>>> >>>>>> Eric: >>>>>> >>>>>> I would recommend using ssh agent forwarding to check out a git repo. >>>>>> You'll need to use the "ssh" connection and enable agent forwarding on >>>>>> your >>>>>> local machine, as well as ensuring that the remote git repo has your ssh >>>>>> public key. >>>>>> >>>>>> Lorin >>>>>> >>>>>> >>>>>> On Mon, Jul 15, 2013 at 8:52 PM, Eric Palmer >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> I want to do a git archive from git hub private repo or a shallow >>>>>>> clone >>>>>>> >>>>>>> But I don't see how to specify the username and password. If I use >>>>>>> the ssh: protocol I can add the username. How do I specify the >>>>>>> password. >>>>>>> >>>>>>> thanks >>>>>>> >>>>>>> -- >>>>>>> Eric >>>>>>> >>>>>>> -- >>>>>>> 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 [email protected]. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Lorin Hochstein >>>>>> Lead Architect - Cloud Services >>>>>> Nimbis Services, Inc. >>>>>> www.nimbisservices.com >>>>>> >>>>>> -- >>>>>> 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 [email protected]. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> KK4MWM (Ham Radio) >>>>> About Me <http://about.me/ericpalmer> >>>>> http://www.thingiverse.com/DaddyOh >>>>> Join the 3DPrinter Revolution >>>>> http://makerbot.com >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Lorin Hochstein >>>> Lead Architect - Cloud Services >>>> Nimbis Services, Inc. >>>> www.nimbisservices.com >>>> >>> -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
