jmespath error

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.

Hi Sakshi,

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

Jmespath and ansible is installed using docker image in kubernetes plugin so i believe it is on the same path.

Was it working before?

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

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.