Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
On 12/10/19 2:11 PM, Gyalgin Sherpa wrote: > That’s my issue, I am already using public key and also asking me credentials  > > Best So the private key needs to be on the target and maybe you need key_file parameter (https://docs.ansible.com/ansible/latest/modules/git_module.html). You tried a

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
That’s my issue, I am already using public key and also asking me credentials Best On Tue, Dec 10, 2019 at 08:06 Stefan Hornburg (Racke) wrote: > On 12/10/19 2:02 PM, Gyalgin Sherpa wrote: > > That’s as usual with public key > > > > So why doesn't the Ansible user use a public key? > > Regards

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
On 12/10/19 2:02 PM, Gyalgin Sherpa wrote: > That’s as usual with public key > So why doesn't the Ansible user use a public key? Regards Racke > On Tue, Dec 10, 2019 at 07:57 Stefan Hornburg (Racke) > wrote: > > On 12/10/19 11:36 AM, Gyalgin Sherpa

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
That’s as usual with public key On Tue, Dec 10, 2019 at 07:57 Stefan Hornburg (Racke) wrote: > On 12/10/19 11:36 AM, Gyalgin Sherpa wrote: > > Hello Rake, > > Yes, we do, however, cloning the repo in the same target did not prompt > me for the password, but it did when running > > playbook

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
On 12/10/19 11:36 AM, Gyalgin Sherpa wrote: > Hello Rake, > Yes, we do, however, cloning the repo in the same target did not prompt me > for the password, but it did when running > playbook container repo details. I guess following might help > > |- name: Get updated files from git repository

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Karl Auer
I'm not being nasty when I say this, but: Prove it :-) Seriously - the single most likely reason for what you are seeing is that the users are different. Not the githubuser - the user that is executing the git command. So prove to yourself that they are in fact the same, e.g. by setting a

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
Hello Rake, Yes, we do, however, cloning the repo in the same target did not prompt me for the password, but it did when running playbook container repo details. I guess following might help - name: Get updated files from git repository git: repo: "https://{{ githubuser | urlencode

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
Hello K, Yes same user while cloning and executing playbook Best On Tue, Dec 10, 2019 at 04:47 Karl Auer 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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Karl Auer
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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Gyalgin Sherpa
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 On Tue, Dec 10, 2019 at 03:15 Stefan Hornburg (Racke) wrote: > On 12/9/19 10:30 PM, Mark Bolden

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
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

Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-09 Thread Kai Stian Olstad
On 09.12.2019 22:30, Mark Bolden wrote: How can I tell Ansible to NOT use Python 2.7 and only use 3.6 and its modules? Anyone? Thanks in advance!! A good start would be to read the docs https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html -- Kai Stian Olstad