Bug 2218901 - ansible-playbook error - need to install "jmespath" prior to running json_query filter
Summary: ansible-playbook error - need to install "jmespath" prior to running json_que...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ansible
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-30 13:55 UTC by Kyle Gottfried
Modified: 2023-06-30 15:27 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-30 15:27:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kyle Gottfried 2023-06-30 13:55:46 UTC
Description of problem: 
The following error appears when running an ansible-playbook play after ansible's python version is updated.

"msg": "The conditional check 'node_sync_status | community.general.json_query(query) | first | bool' failed. The error was: You need to install \"jmespath\" prior to running json_query filter

Version-Release number of selected component (if applicable): ansible-7.2.0-1.el8


How reproducible:
Install the ansible package from EPEL on a clean RHEL 8 install. Use the community.general.json_query filter in the `when:` clause of a play task.


Actual results: The error message `"msg": "The conditional check 'node_sync_status | community.general.json_query(query) | first | bool' failed. The error was: You need to install \"jmespath\" prior to running json_query filter` appears


Expected results: The filter is applied


Additional info:
The `ansible` package (as well as the `ansible-collection-community-general` package) should have python3.11-jmespath defined as a dependency in order to fulfill the requirements of the `community.general.json_query` filter.


Note You need to log in before you can comment on or make changes to this bug.