On 12/10/19 10:57 AM, Gyalgin Sherpa wrote:
> Hello K,
> Yes same user while cloning and executing playbook
> 
> Best  
Any sort of detailed information about the Git repository and the 
authentication method used ?

Regards
          Racke

> 
> On Tue, Dec 10, 2019 at 04:47 Karl Auer <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     You may be missing the point of Stefan's question. Is Ansible executing 
> this git command as the SAME USER that you
>     are executing the git command as, when you execute the command manually?
> 
>     Authentication for git is user-based. If Ansible is not running the 
> command as the SAME USER that you are using when
>     you run the command manually, then you can expect authentication to fail. 
> By the way, the user that Ansible is
>     running git as is NOT necessarily the user that is running Ansible.
> 
>     A quick look at the Ansible docs reveals a git_config module. You could 
> try using it to retrieve the global git
>     configuration (the equivalent of running git config --global -l) via 
> Ansible on the target host. Does the output
>     match what you get when you execute that command manually on the target 
> host? If not, you have found the problem.
> 
>     Regards, K.
> 
>     On Tue, Dec 10, 2019 at 8:17 PM Gyalgin Sherpa <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>         Hello Racke,
> 
>         Thank you for the quick response. My apologies for hijacking the 
> loop, this my first email will make a new  
>         Subject line going forward.
>         Coming back to my issue, yes I was successfully clone in my target 
> machine where ansible is installed . But when
>         I target same location with following line in ansible playbook, it’s 
> prompting me password 
> 
>         Best Regards
> 
>         On Tue, Dec 10, 2019 at 04:10 Stefan Hornburg (Racke) 
> <[email protected] <mailto:[email protected]>> wrote:
> 
>             On 12/10/19 10:05 AM, Gyalgin Sherpa wrote:
>             > Hello team,
>             > It’s asking me user and password while  checking code from giit 
>             > git:
>             >   repo; ‘git url’
>             >   dest : ‘local path’
>             >
>             > But when I clone manually it does not prompt for password,
>             >
>             > Best Regards
>             >
> 
>             Hello Gyalgin,
> 
>             it is really so hard to start a fresh email instead of hijacking 
> the subject and providing more than next to
>             nothing
>             information about your problem?
> 
>             Did you try to clone the Git repo manually on the target system 
> as the same user as Ansible?
> 
>             Regards
>                      Racke
> 
>             > On Tue, Dec 10, 2019 at 03:15 Stefan Hornburg (Racke) 
> <[email protected] <mailto:[email protected]>
>             <mailto:[email protected] <mailto:[email protected]>>> wrote:
>             >
>             >     On 12/9/19 10:30 PM, Mark Bolden wrote:
>             >     > I am on Centos 7 and I was trying to install Pyrax and 
> seeing these errors:
>             >     >
>             >     > ERROR: os-service-types 1.7.0 has requirement 
> pbr!=2.1.0,>=2.0.0, but you'll have pbr 1.10.0 which
>             is incompatible.
>             >     > ERROR: python-keystoneclient 3.22.0 has requirement 
> pbr!=2.1.0,>=2.0.0, but you'll have pbr 1.10.0
>             which is
>             >     incompatible.
>             >     > ERROR: python-keystoneclient 3.22.0 has requirement 
> requests>=2.14.2, but you'll have requests 2.6.0
>             which is
>             >     incompatible.
>             >     > ERROR: oslo-config 6.12.0 has requirement 
> requests>=2.18.0, but you'll have requests 2.6.0 which is
>             incompatible.
>             >     > ERROR: stevedore 1.31.0 has requirement 
> pbr!=2.1.0,>=2.0.0, but you'll have pbr 1.10.0 which is
>             incompatible.
>             >     >
>             >     >
>             >     > So, I Installed Python 3.6 and ran pip3 install pyrax and 
> success! The problem seems to be that
>             ansible-playbook is
>             >     > still looking at Python 2.7 which does NOT have the pyrax 
> module installed because I am seeing this:
>             >     >
>             >     > TASK [Database build request]
>             >     >
>             >   
>              
> ****************************************************************************************************************************
>             >     > fatal: [devdb -> localhost]: FAILED! => {"changed": 
> false, "msg": "pyrax is required for this module"}
>             >     >
>             >     > How can I tell Ansible to NOT use Python 2.7 and only use 
> 3.6 and its modules?
>             >
>             >     Set the following variable to the path of your Python 
> binary:
>             >
>             >     ansible_python_interpreter: /usr/bin/python3
>             >
>             >     Regards
>             >               Racke
>             >
>             >     >
>             >     > Anyone? Thanks in advance!!
>             >     > -M
>             >     >
>             >     > --
>             >     > 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] 
> <mailto:ansible-project%[email protected]>
>             <mailto:ansible-project%[email protected]
>             <mailto:ansible-project%[email protected]>>
>             >     <mailto:[email protected]
>             <mailto:ansible-project%[email protected]>
>             <mailto:ansible-project%[email protected]
>             <mailto:ansible-project%[email protected]>>>.
>             >     > To view this discussion on the web visit
>             >     >
>             
> https://groups.google.com/d/msgid/ansible-project/6b5c8efe-0e1c-4728-9217-2894220268a4%40googlegroups.com
>             >     >
>             >   
>              
> <https://groups.google.com/d/msgid/ansible-project/6b5c8efe-0e1c-4728-9217-2894220268a4%40googlegroups.com?utm_medium=email&utm_source=footer>.
>             >
>             >
>             >     --
>             >     Ecommerce and Linux consulting + Perl and web application 
> programming.
>             >     Debian and Sympa administration. Provisioning with Ansible.
>             >
>             >     --
>             >     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] 
> <mailto:ansible-project%[email protected]>
>             <mailto:ansible-project%[email protected]
>             <mailto:ansible-project%[email protected]>>.
>             >     To view this discussion on the web visit
>             >     
> https://groups.google.com/d/msgid/ansible-project/49a16888-ce7d-7945-d253-ac62d1643bd9%40linuxia.de.
>             >
>             > --
>             > 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] 
> <mailto:ansible-project%[email protected]>
>             <mailto:[email protected] 
> <mailto:ansible-project%[email protected]>>.
>             > To view this discussion on the web visit
>             >
>             
> https://groups.google.com/d/msgid/ansible-project/CABynDMHLje1D1AbBNk1zz5ZpGLU%3DCX268f3gLp%2Bb6706QHJ%3DSA%40mail.gmail.com
>             >
>             
> <https://groups.google.com/d/msgid/ansible-project/CABynDMHLje1D1AbBNk1zz5ZpGLU%3DCX268f3gLp%2Bb6706QHJ%3DSA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> 
>             -- 
>             Ecommerce and Linux consulting + Perl and web application 
> programming.
>             Debian and Sympa administration. Provisioning with Ansible.
> 
>             -- 
>             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] 
> <mailto:ansible-project%[email protected]>.
>             To view this discussion on the web visit
>             
> https://groups.google.com/d/msgid/ansible-project/479feb36-586f-6f35-3bae-eafd93859e99%40linuxia.de.
> 
>         -- 
>         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] 
> <mailto:[email protected]>.
> 
>         To view this discussion on the web visit
>         
> https://groups.google.com/d/msgid/ansible-project/CABynDMGDR3z-uNzYMJRnHVv4-6_UFupDk3wB7AE6O5c0oMQ%3DnA%40mail.gmail.com
>         
> <https://groups.google.com/d/msgid/ansible-project/CABynDMGDR3z-uNzYMJRnHVv4-6_UFupDk3wB7AE6O5c0oMQ%3DnA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> 
> 
>     -- 
>     *
>     *
>     *Karl Auer* { manager, systems support }
>     P: 1300 759 975
>     E: [email protected] <mailto:[email protected]>
>     2pisoftware.com <https://2pisoftware.com>
> 
>     GPG/PGP : 301B 1F4E 624D AD99 242C 7A68 EC24 7113 E854 4A4E
>     Previous: 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> 
>     -- 
>     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] 
> <mailto:[email protected]>.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08SCgcE0TTm3RKzmZVjMWQq-hTJwQekP_%3Dwv2HgPByKAww%40mail.gmail.com
>     
> <https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08SCgcE0TTm3RKzmZVjMWQq-hTJwQekP_%3Dwv2HgPByKAww%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CABynDMFsB0aFQvLOzW06h__1SUxHQhwgmxusdszXWYPHBXMT_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CABynDMFsB0aFQvLOzW06h__1SUxHQhwgmxusdszXWYPHBXMT_g%40mail.gmail.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/335917cb-d019-61cf-2aea-c25e4c3c5c81%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to