[ansible-project] Re: junit callback Options example

2021-04-08 Thread Tim Black
Anyone make any headway on this issue? I'm trying to use the j unit call back plug in and configuring it with environment variables per the recent documentation, but they don't seem to be working. In my case I'm running the ansible playbook from the Jenkins job where I'm setting up the

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
Now, I tried that in my ansible.cfg and indeed it passed my errors , thank you Matt ! I am still a bit confused though , Why do we bother creating virtual environments if eventually ansible keeps trying to use a system-wide installed python ? really , why is that ? thanks for enlightenment

[ansible-project] ansible become user failing due to shell execution restrictions

2021-04-08 Thread John Petro
I am running into an interesting issue, and wondered if anyone has hit the same thing as I have. We have our sudo configs locked down pretty tight, and don't allow users to do execute a shell directly using sudo. So, basically, things like sudo /bin/sh are not permitted. I found a 5 year old

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
Now, I tried that in my ansible.cfg and indeed it passed my errors , thank you Matt ! I am still a bit confused though ;) Le jeudi 8 avril 2021 à 12:07:43 UTC-7, Nick-H a écrit : > > hmm ok but this runs on the controller ( awx ) , so I followed this doc : > >

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
hmm ok but this runs on the controller ( awx ) , so I followed this doc : https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html#on-the-controller-side Do I need to use the interpreter var in that case ? Le jeudi 8 avril 2021 à 11:59:30 UTC-7, Matt Martz a écrit

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Matt Martz
If you want a module to run with python3, you will generally need to set `ansible_python_interpreter` for that host to get it to use the interpreter you want. We default and fallback to py2. On Thu, Apr 8, 2021 at 1:23 PM Nick-H wrote: > Oh No I want to get rid of python2 for my ansible

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
Oh No I want to get rid of python2 for my ansible playbooks :( been fighting this for weeks ... from ansible itself it seems to be running on python3 : ansible-playbook 2.8.12 config file = /var/lib/awx/tmp/.../project/ansible.cfg configured module search path =

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Matt Martz
If I had to guess, you are executing the module and subsequently pymysql with python2. The paths seem to indicate a python3 virtualenv, but the error indicates that you are executing Python2, with potentially a PYTHONPATH pointing to the Python3 venv. The error is in regards to the "keyword only

[ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
I am trying to move to python 3.6 on centos 7.8 and ansible 2.8.12 Mysql_db module fails importing connections from PyMySQL pip module. At least with recent versions ( 0.9 ,1.0.2 ) using 0.7 pass. the error seems to be related to a PEP recommendation E402 . As per PyMySQL doc , python3 is

Re: [ansible-project] Re: How to use Ansible Kubernetes packages with the Helm package manager modules

2021-04-08 Thread siva bagavathy
Hi Abhijeet, It is showing the same output still. Not sure where is the issue ? Thanks, Siva On Thu, Apr 8, 2021 at 6:50 PM Abhijeet Kasurde wrote: > Hi Siva, > > Can you please try with values like - > > - name: integrate-new-relic-and-prometheus-with-cluster >

[ansible-project] ansible.windows.win_copy - Copy wireguard config files works but throws an error

2021-04-08 Thread needabettername
It's possible to install config files for Windows Wireguard GUI by copying them to a location "The manager service monitors %ProgramFiles%\WireGuard\Data\Configurations\ for the addition of new .conf files. Upon seeing one, it encrypts the file to a .conf.dpapi file, makes it unreadable to

Re: [ansible-project] Re: How to use Ansible Kubernetes packages with the Helm package manager modules

2021-04-08 Thread Abhijeet Kasurde
Hi Siva, Can you please try with values like - - name: integrate-new-relic-and-prometheus-with-cluster community.kubernetes.helm: binary_path: "/usr/local/bin/helm" release_namespace: default name: newrelic chart_ref: newrelic/nri-bundle values:

Re: [ansible-project] Re: How to use Ansible Kubernetes packages with the Helm package manager modules

2021-04-08 Thread 'Sivaraman S b' via Ansible Project
Please find the output. ]# kubectl -n default get pods NAMEREADY STATUS RESTARTS AGE newrelic-nri-metadata-injection-job-4gsxp 0/1 Completed 0 5h30m *In actual helm deployment, it should show below PODS and daemon sets. All

Re: [ansible-project] Re: How to use Ansible Kubernetes packages with the Helm package manager modules

2021-04-08 Thread Abhijeet Kasurde
Can you please paste kubectl -n default get pods? On Thu, Apr 8, 2021 at 4:40 PM 'Sivaraman S b' via Ansible Project < ansible-project@googlegroups.com> wrote: > Hi Abhijeet, Team, > > Could you help me with my request? > > Thanks in advance. > > Thanks, > Siva > > On Thursday, April 1, 2021 at

Re: [ansible-project] Re: How to use Ansible Kubernetes packages with the Helm package manager modules

2021-04-08 Thread 'Sivaraman S b' via Ansible Project
Hi Abhijeet, Team, Could you help me with my request? Thanks in advance. Thanks, Siva On Thursday, April 1, 2021 at 2:56:02 PM UTC+5:30 srisi...@gmail.com wrote: > Hi Abhijeet, > > Thanks for your help. > > Please find the log below. Btrw, there is no error message upon running > the

Re: [ansible-project] Merge/Combine Inventory Variables with Defaults rather than override

2021-04-08 Thread Aravinda. R
Hi Christoph, I tried this with one of my Ansible work, looks like it does not work well if we have a nested dict. any suggestions ? On Saturday, 4 May 2019 at 14:34:18 UTC+5:30 Max Bigras wrote: > Hi christoph, > > Was very excited to see your solution to this problem. > I've been struggling

[ansible-project] How to Skip a empty member inside the F5 pool

2021-04-08 Thread lokesh M
Hi Guys, Hope some one can help me out. We are trying to run a ansible playbook which checks the give node IP within the pool members node to check the Presence. But due to some Pool doesn't have any member node to check, it directly stops the code find a empty string to check with.