Error:
"msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the `dnf` Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead.
mechanism:
1. ansible python3 of yum module with an alternative module dnf 2. There is a list of nodes controlled environment python3
solve:
Master node ansible_python_interpreter: /usr/bin/python2.7