Bug 2218901

Summary: ansible-playbook error - need to install "jmespath" prior to running json_query filter
Product: [Fedora] Fedora EPEL Reporter: Kyle Gottfried <Gottfried.Kyle>
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: epel8CC: a.badger, Gottfried.Kyle, kevin, maxwell, moi, patrick
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-30 15:27:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.