Re: [ansible-project] jxmlease is required to display response in json

2021-02-18 Thread chtsalid
Yes, I am executing my playbooks as a user.

ll /usr/bin/ | grep python
lrwxrwxrwx. 1 root root9 31. Aug 23:02 python2 -> python2.7
-rwxr-xr-x. 1 root root 8224 31. Aug 23:02 python2.7
lrwxrwxrwx. 1 root root   25 14. Okt 10:40 python3 -> 
/etc/alternatives/python3
lrwxrwxrwx. 1 root root   31 20. Nov 2019  python3.6 -> 
/usr/libexec/platform-python3.6
lrwxrwxrwx. 1 root root   32 20. Nov 2019  python3.6m -> 
/usr/libexec/platform-python3.6m
lrwxrwxrwx. 1 root root   24 17. Feb 15:45 unversioned-python -> 
/etc/alternatives/python

Thanks!

On Thursday, February 18, 2021 at 3:45:46 PM UTC+1 brae...@gmail.com wrote:

> On 2/18/21 2:22 PM, chtsalid wrote:
> > Thanks for your input! I tried it using once python3 and then python2, 
> but in both cases I am still getting the same error.
> > 
> > Any other idea where this problem lies :) ?
>
> pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
> jxmlease (1.0.3)
> ncclient (0.6.9)
> xmltodict (0.12.0)
>
> Did you run this as ansible user?
>
> How is Python3 installed on your server?
>
> Regards
> Racke
>
> > 
> > Thanks!
> > 
> > On Thursday, February 18, 2021 at 11:53:12 AM UTC+1 brae...@gmail.com 
> wrote:
> > 
> > On 2/18/21 11:49 AM, chtsalid wrote:
> > > Hi all,
> > >
> > > I am running a task using the netconf_get module and encountering a 
> problem to display an output in json format?
> > > I am getting the following error.
> > >
> > > jxmlease is required to display response in json
> > >
> > > However jxmlease and all other requirements are installed on my 
> machine as you see below.
> > >
> > > pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
> > > jxmlease (1.0.3)
> > > ncclient (0.6.9)
> > > xmltodict (0.12.0)
> > >
> > > nsible --version
> > > ansible 2.9.14
> > >   config file = /etc/ansible/ansible.cfg
> > >   configured module search path = ['/root/.ansible/plugins/modules', 
> '/usr/share/ansible/plugins/modules']
> > >   ansible python module location = 
> /usr/lib/python3.6/site-packages/ansible
> > >   executable location = /usr/bin/ansible
> > >   python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 
> 20191121 (Red Hat 8.3.1-5)]
> > >
> > > Any idea where the problem lies?
> > >
> > > Thanks!
> > 
> > Make sure that Ansible actually uses Python3 by setting the following 
> variable in your inventory:
> > 
> > ansible_python_interpreter: /usr/bin/python3
> > 
> > Regards
> > Racke
> > 
> > >
> > >
> > >
> > > --
> > > 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  ansible-proje...@googlegroups.com>.
> > > To view this discussion on the web visit
> > > 
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com
> >
> > >
> > <
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com?utm_medium=email_source=footer
> > <
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com?utm_medium=email_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
> > ansible-proje...@googlegroups.com  ansible-proje...@googlegroups.com>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/a5488408-82b2-4ba9-afa7-bf1149621ba0n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/a5488408-82b2-4ba9-afa7-bf1149621ba0n%40googlegroups.com?utm_medium=email_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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d177f6df-bd7f-4fc1-9eff-394680889661n%40googlegroups.com.


Re: [ansible-project] jxmlease is required to display response in json

2021-02-18 Thread Stefan Hornburg (Racke)
On 2/18/21 2:22 PM, chtsalid wrote:
> Thanks for your input! I tried it using once python3 and then python2, but in 
> both cases I am still getting the same error.
> 
> Any other idea where this problem lies :) ?

pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
jxmlease (1.0.3)
ncclient (0.6.9)
xmltodict (0.12.0)

Did you run this as ansible user?

How is Python3 installed on your server?

Regards
 Racke

> 
> Thanks!
> 
> On Thursday, February 18, 2021 at 11:53:12 AM UTC+1 brae...@gmail.com wrote:
> 
> On 2/18/21 11:49 AM, chtsalid wrote:
> > Hi all,
> >
> > I am running a task using the netconf_get module and encountering a 
> problem to display an output in json format?
> > I am getting the following error.
> >
> > jxmlease is required to display response in json
> >
> > However jxmlease and all other requirements are installed on my machine 
> as you see below.
> >
> > pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
> > jxmlease (1.0.3)
> > ncclient (0.6.9)
> > xmltodict (0.12.0)
> >
> > nsible --version
> > ansible 2.9.14
> >   config file = /etc/ansible/ansible.cfg
> >   configured module search path = ['/root/.ansible/plugins/modules', 
> '/usr/share/ansible/plugins/modules']
> >   ansible python module location = 
> /usr/lib/python3.6/site-packages/ansible
> >   executable location = /usr/bin/ansible
> >   python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 
> 20191121 (Red Hat 8.3.1-5)]
> >
> > Any idea where the problem lies?
> >
> > Thanks!
> 
> Make sure that Ansible actually uses Python3 by setting the following 
> variable in your inventory:
> 
> ansible_python_interpreter: /usr/bin/python3
> 
> Regards
> Racke
> 
> >
> >
> >
> > --
> > 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 
> .
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com
> 
> 
> >
> 
>  
> >.
> 
> 
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a5488408-82b2-4ba9-afa7-bf1149621ba0n%40googlegroups.com
> .


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b5b96f2b-57b5-15da-cb42-88ddb68045de%40linuxia.de.


OpenPGP_signature
Description: OpenPGP digital signature


Re: [ansible-project] jxmlease is required to display response in json

2021-02-18 Thread chtsalid
Thanks for your input! I tried it using once python3 and then python2, but 
in both cases I am still getting the same error.

Any other idea where this problem lies :) ?

Thanks!

On Thursday, February 18, 2021 at 11:53:12 AM UTC+1 brae...@gmail.com wrote:

> On 2/18/21 11:49 AM, chtsalid wrote:
> > Hi all,
> > 
> > I am running a task using the netconf_get module and encountering a 
> problem to display an output in json format?
> > I am getting the following error.
> > 
> > jxmlease is required to display response in json
> > 
> > However jxmlease and all other requirements are installed on my machine 
> as you see below.
> > 
> > pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
> > jxmlease (1.0.3)
> > ncclient (0.6.9)
> > xmltodict (0.12.0)
> > 
> > nsible --version
> > ansible 2.9.14
> >   config file = /etc/ansible/ansible.cfg
> >   configured module search path = ['/root/.ansible/plugins/modules', 
> '/usr/share/ansible/plugins/modules']
> >   ansible python module location = 
> /usr/lib/python3.6/site-packages/ansible
> >   executable location = /usr/bin/ansible
> >   python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 
> 20191121 (Red Hat 8.3.1-5)]
> > 
> > Any idea where the problem lies?
> > 
> > Thanks!
>
> Make sure that Ansible actually uses Python3 by setting the following 
> variable in your inventory:
>
> ansible_python_interpreter: /usr/bin/python3
>
> Regards
> Racke
>
> > 
> > 
> > 
> > -- 
> > 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  ansible-proje...@googlegroups.com>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com?utm_medium=email_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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a5488408-82b2-4ba9-afa7-bf1149621ba0n%40googlegroups.com.


Re: [ansible-project] jxmlease is required to display response in json

2021-02-18 Thread Stefan Hornburg (Racke)
On 2/18/21 11:49 AM, chtsalid wrote:
> Hi all,
> 
> I am running a task using the netconf_get module and encountering a problem 
> to display an output in json format?
> I am getting the following error.
> 
> jxmlease is required to display response in json
> 
> However jxmlease and all other requirements are installed on my machine as 
> you see below.
> 
> pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
> jxmlease (1.0.3)
> ncclient (0.6.9)
> xmltodict (0.12.0)
> 
> nsible --version
> ansible 2.9.14
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = ['/root/.ansible/plugins/modules', 
> '/usr/share/ansible/plugins/modules']
>   ansible python module location = /usr/lib/python3.6/site-packages/ansible
>   executable location = /usr/bin/ansible
>   python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 
> (Red Hat 8.3.1-5)]
> 
> Any idea where the problem lies?
> 
> Thanks!

Make sure that Ansible actually uses Python3 by setting the following variable 
in your inventory:

ansible_python_interpreter: /usr/bin/python3

Regards
 Racke

> 
> 
> 
> -- 
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com
> .


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/07fce1d6-2453-1fc2-cd02-8a40744c25f0%40linuxia.de.


OpenPGP_signature
Description: OpenPGP digital signature


[ansible-project] jxmlease is required to display response in json

2021-02-18 Thread chtsalid
Hi all,

I am running a task using the netconf_get module and encountering a problem 
to display an output in json format?
I am getting the following error.

jxmlease is required to display response in json

However jxmlease and all other requirements are installed on my machine as 
you see below.

pip3 list | grep 'jxmlease\|ncclient\|xmltodict'
jxmlease (1.0.3)
ncclient (0.6.9)
xmltodict (0.12.0)

nsible --version
ansible 2.9.14
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', 
'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 
20191121 (Red Hat 8.3.1-5)]

Any idea where the problem lies?

Thanks!



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e3c04d34-4f18-4935-ab1b-9eadca6d62c2n%40googlegroups.com.