jmespath error

292 views
Skip to first unread message

Sakshi Rathore

unread,
Feb 24, 2021, 1:55:40 AM2/24/21
to Ansible Project
Hi,

could someone please advise.
after running ansible playbook through jenkins i am getting below error:

TASK [prep_ccp_inventory : master ip list from json content] ******************* fatal: [playground.tank.local]: FAILED! => {"msg": "You need to install \"jmespath\" prior to running json_query filter"} 

jmespath is already insallted on jenkins server but i am still getting this error.
 

Abhijeet Kasurde

unread,
Feb 24, 2021, 2:46:47 AM2/24/21
to ansible...@googlegroups.com
Hi Sakshi,

Check if jmespath is installed in the same location as Ansible Python location.

--
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/57eda2d4-5a5e-4170-af71-1f4a9b15d0c4n%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Sakshi Rathore

unread,
Feb 24, 2021, 2:48:48 AM2/24/21
to ansible...@googlegroups.com
Jmespath and ansible is installed using docker image in kubernetes plugin so i believe  it is on the same path.

Abhijeet Kasurde

unread,
Feb 24, 2021, 2:52:03 AM2/24/21
to ansible...@googlegroups.com
Was it working before?

You need to install \"jmespath\" prior to running json_query filter <=== denotes that Ansible is unable to import the jmespath



--
Thanks,
Abhijeet Kasurde

Sakshi Rathore

unread,
Feb 24, 2021, 3:42:21 AM2/24/21
to ansible...@googlegroups.com
it is working on linux machine but it is not working on jenkins server . i am using below docker file to run ansible on jenkins server.

image.png

Reply all
Reply to author
Forward
0 new messages