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.
This is intentional. See https://docs.fedoraproject.org/en-US/packaging-guidelines/Ansible_collections/#_external_dependencies_of_plugins.