Skip to content
Discussion options

You must be logged in to vote
  # check you jmespath location
  pip3 show jmespath
  python3.12 -m pip show jmespath

  # 2. which Python is used by ansible
  ansible --version

  # 3. check json_query is working
  ansible localhost -m debug -a "msg={{ [{'name': 'test'}] | json_query('[?name==`test`]') }}"`

try fix it by installing jmespath for the actual python interpreter

 python3.12 -m pip install jmespath

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VadimJCA
Comment options

Answer selected by VadimJCA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants