Hi Pshem,

Thanks for your reply.
I am getting following error, and not able to fix the issue,

"msg": "Failed to download remote objects and refs:  Ubuntu 16.04.3 
LTS\nPermission denied (publickey,password,keyboard-interactive).\r\nfatal: 
Could not read from remote repository.\n\nPlease make sure you have the 
correct access rights\nand the repository exists.\n"

Looking forward for your reply.

Regards
Sumit Sahay
7044112109

On Friday, 17 August 2018 03:15:41 UTC+5:30, Pshem Kowalczyk wrote:
>
> There are two things here:
>
> 1. If you're using SSH the public key of the remote server must be added 
> to 'known_hosts', for example like this:
>
> ssh-keyscan -t rsa github.com | sed "s/^[^ ]* //" >> ~/.ssh/known_hosts
>
> (alternatively you can get ansible to just accept whatever key is offered 
> with --accept-host-key)
>
> 2. Secondly you have to specify the private key associated with the repo 
> with --private-key
>
> kind regards
> Pshem
>
>
> On Thu, 16 Aug 2018 at 22:36 SUMIT SAHAY <sumitsa...@gmail.com 
> <javascript:>> wrote:
>
>> Thanks Pshem for your reply.
>>
>> ansible-pull -U [git_url] -k playbook.yml --limit localhost
>>
>> I am using this command to run the ansible pull, while doing this I am 
>> getting one error, unable to resolve the error.
>>
>>
>> "msg": "Failed to download remote objects and refs:  Host key 
>> verification failed.\r\nfatal: Could not read from remote 
>> repository.\n\nPlease make sure you have the correct access rights\nand the 
>> repository exists.\n"
>>
>> Can you please help me out on this
>>
>>
>> Looking forward for your reply
>>
>>
>> Thanks & Regards
>> Sumit Sahay
>> 07044112109
>>
>> On Thu, Aug 16, 2018 at 3:56 PM, Pshem Kowalczyk <psh...@gmail.com 
>> <javascript:>> wrote:
>>
>>> Hi,
>>>
>>> That's correct, in pull mode ansible modifies and sets things on the 
>>> machine on which it runs. The easiest way of providing inventory in this 
>>> case is via command line:
>>>
>>> -i $(hostname), 
>>>
>>> Please note the comma at the end.
>>>
>>> kind regards
>>> Pshem
>>>
>>>
>>> On Wed, 15 Aug 2018 at 02:55 SUMIT SAHAY <sumitsa...@gmail.com 
>>> <javascript:>> wrote:
>>>
>>>> Thanks for your reply Jonathan.
>>>> localhost : from where we are triggering command.
>>>> This is what you want to say?
>>>>
>>>> Looking forward for your reply.
>>>>
>>>> Regards
>>>> Sumit Sahay
>>>> 07044112109
>>>>
>>>> On Tue, Aug 14, 2018, 7:44 PM Jonathan Lozada De La Matta <
>>>> jloz...@redhat.com <javascript:>> wrote:
>>>>
>>>>> usually ansible-pull its used on localhost and not other hosts. If you 
>>>>> are trying to do other host then use regular ansible. Ansible-pull is a 
>>>>> different use case.
>>>>>
>>>>> On Tue, Aug 14, 2018 at 8:26 AM SUMIT SAHAY <sumitsa...@gmail.com 
>>>>> <javascript:>> wrote:
>>>>>
>>>>>> Thanks Jonathan, for your reply.
>>>>>>
>>>>>> No, I am not using localhost, I want to run my playbook on ubuntu 
>>>>>> host which I set up in my host file, and the host file is located in 
>>>>>> /home/test/sumit/
>>>>>>
>>>>>> How to run this so that it will pick up the host and execute on 
>>>>>> ubuntu remote host.
>>>>>>
>>>>>> Looking forward for your reply.
>>>>>>
>>>>>> Thanks & Regards
>>>>>> Sumit Sahay
>>>>>> 7044112109
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 14, 2018 at 5:17 PM, Jonathan Lozada De La Matta <
>>>>>> jloz...@redhat.com <javascript:>> wrote:
>>>>>>
>>>>>>> what hosts are on your playbook? is it localhost?
>>>>>>>
>>>>>>> On Tue, Aug 14, 2018 at 3:07 AM SUMIT SAHAY <sumitsa...@gmail.com 
>>>>>>> <javascript:>> wrote:
>>>>>>>
>>>>>>>> Thanks Balz, for your reply.
>>>>>>>>
>>>>>>>> Could you help me with the command for ansible pull, I installed 
>>>>>>>> git and repository and I committed the ansible playbook there now I 
>>>>>>>> want to 
>>>>>>>> run this from my localhost server following command I am using but 
>>>>>>>> getting 
>>>>>>>> error,
>>>>>>>>
>>>>>>>> ansible-pull -U https://repourl.com/git/user_name/git_location -k 
>>>>>>>> -i /home/test/hosts playbook.yml
>>>>>>>>
>>>>>>>> getting error saying skipping the hosts.
>>>>>>>>
>>>>>>>> Could you please navigate me to the correct command.
>>>>>>>>
>>>>>>>> Looking forward for your reply.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Sumit Sahay
>>>>>>>> 7044112109
>>>>>>>>
>>>>>>>> On Wednesday, 8 August 2018 22:43:53 UTC+5:30, balz.as...@unibas.ch 
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Hi Sumit
>>>>>>>>>
>>>>>>>>> We're using a wrapper around ansible-pull. We use it mainly for 
>>>>>>>>> clients but we've a step-by-step guide you might find helpful:
>>>>>>>>> https://github.com/ANTS-Framework/ants
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Balz
>>>>>>>>>
>>>>>>>>> Am Mittwoch, 8. August 2018 08:03:45 UTC+2 schrieb SUMIT SAHAY:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi All,
>>>>>>>>>>
>>>>>>>>>> I am trying to setup the ansible pull based on my vm server.
>>>>>>>>>>
>>>>>>>>>> Is there any step-wise documentation for this?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Sumit Sahay
>>>>>>>>>> 7044112109
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>> 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 <javascript:>.
>>>>>>>> To post to this group, send email to ansible...@googlegroups.com 
>>>>>>>> <javascript:>.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/ansible-project/ceb0cea7-7919-45f0-8288-e7ac8341cb57%40googlegroups.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/ansible-project/ceb0cea7-7919-45f0-8288-e7ac8341cb57%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>> -- 
>>>>>>>
>>>>>>> Jonathan lozada de la matta
>>>>>>>
>>>>>>> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>>>>>>>
>>>>>>> Red Hat Consulting Services <https://www.redhat.com/>
>>>>>>>
>>>>>>> jloz...@redhat.com <javascript:>    
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to a topic in 
>>>>>>> the Google Groups "Ansible Project" group.
>>>>>>> To unsubscribe from this topic, visit 
>>>>>>> https://groups.google.com/d/topic/ansible-project/W9jYFiNta_A/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>>> ansible-proje...@googlegroups.com <javascript:>.
>>>>>>> To post to this group, send email to ansible...@googlegroups.com 
>>>>>>> <javascript:>.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BLARn5QZ8L8SqNO%2BSE-iDO16AnfMEcFcqqnrx%2Be6r4WRQ%40mail.gmail.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BLARn5QZ8L8SqNO%2BSE-iDO16AnfMEcFcqqnrx%2Be6r4WRQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>  
>>>>>> 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 <javascript:>.
>>>>>> To post to this group, send email to ansible...@googlegroups.com 
>>>>>> <javascript:>.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/ansible-project/CAA1rwCNPCHF6E51s44neoqPDVXit8x53bwQfyngCy5SF3fq8hg%40mail.gmail.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/ansible-project/CAA1rwCNPCHF6E51s44neoqPDVXit8x53bwQfyngCy5SF3fq8hg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>>>
>>>>> Jonathan lozada de la matta
>>>>>
>>>>> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>>>>>
>>>>> Red Hat Consulting Services <https://www.redhat.com/>
>>>>>
>>>>> jloz...@redhat.com <javascript:>    
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "Ansible Project" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/ansible-project/W9jYFiNta_A/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> ansible-proje...@googlegroups.com <javascript:>.
>>>>> To post to this group, send email to ansible...@googlegroups.com 
>>>>> <javascript:>.
>>>>>
>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2B%2Bo6ZofJPNTFE-D4B%2BUiibsE1TuRAg0210XN38CuE4rQw%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/ansible-project/CAFYJA%2B%2Bo6ZofJPNTFE-D4B%2BUiibsE1TuRAg0210XN38CuE4rQw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>>> 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 <javascript:>.
>>>> To post to this group, send email to ansible...@googlegroups.com 
>>>> <javascript:>.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/ansible-project/CAA1rwCMde0Zk%2BsEVPoB5P_aG2_eOpubyhsC2CpH9Zh2mddH5Nw%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/CAA1rwCMde0Zk%2BsEVPoB5P_aG2_eOpubyhsC2CpH9Zh2mddH5Nw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Ansible Project" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/ansible-project/W9jYFiNta_A/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> ansible-proje...@googlegroups.com <javascript:>.
>>> To post to this group, send email to ansible...@googlegroups.com 
>>> <javascript:>.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/CAEaZiRXcxdChtDCD1s_XCi9LdAsL5dYMKrTtsEsK-4W7iZvn-g%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/CAEaZiRXcxdChtDCD1s_XCi9LdAsL5dYMKrTtsEsK-4W7iZvn-g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> 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 <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAA1rwCNT5XQemU_nSuyHofjm%3DoQ2%2BLk-inhLMT1FwoQUquPEiA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAA1rwCNT5XQemU_nSuyHofjm%3DoQ2%2BLk-inhLMT1FwoQUquPEiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/52beb8a0-aadb-4dc0-b606-1666b0e57d14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to