Hi Andrew,

Thanks a lot for your reply. I was able to overcome the issue by creating a 
config file and adding few details under .ssh folder. I am now able to 
connect to the server.

Thanks,
Lokesh

On Friday, June 19, 2015 at 1:30:39 PM UTC+10, Andrew Burrow wrote:
>
> Possibly start by running the trivial ping module in verbose mode:
>
> ansible all -m ping -vvvv
>
>
> On Friday, 19 June 2015 00:04:51 UTC+10, Lokesh Vastrad wrote:
>>
>> Hi,
>>
>> I am new to Ansible. I have setup Ansible using source from GIT. I am 
>> able to provision a new EC2 instance. I want to connect to this instance 
>> using a .pem file and not ssh.
>>
>> I am able to manually connect to the new instance using the .pem file 
>> with the command "ssh -i abc.pem ec2-user@instance". However, I am unable 
>> to connect using ansible parameter.
>>
>> Command:
>>
>> ansible-playbook abc.yml --private-key=/path/to/file.pem
>>
>> Error: ip | FAILED! => SSH encountered an unknown error during the 
>> execution. 
>>
>> I also created an ansible.cfg file in the current directory and added the 
>> private key file path parameter. Nothing is working for me. Basically, none 
>> of the paramters are set from the ansible.cfg file.
>>
>> Please let me know what I am doing wrong here.
>>
>> Thanks,
>> Lokesh
>>
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/663a877f-2e7e-4152-bf43-8ea33fb6271f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to