Python error with ansible

228 views
Skip to first unread message

Tcpip

unread,
Oct 24, 2018, 5:20:23 AM10/24/18
to Ansible Project
Hi all,

Im getting the error "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."

ansible 2.5.4
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/juraj/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]


python
python                             python2-glance-rootwrap            python2-migrate                    python2-oslopolicy-checker         python3                            
python2                            python2-jsonschema                 python2-migrate-repository         python2-osprofiler                 python3.5                          
python2.7                          python2-keystone                   python2-oslo-config-generator      python2-pbr                        python3.5m                         
python2-alembic                    python2-lockutils-wrapper          python2-oslo-messaging-zmq-broker  python2-unit2                      python3m     


All this is from the server I'm running Ansible.



Thanks. 

Khanh Nguyen Duc

unread,
Oct 17, 2020, 7:09:59 AM10/17/20
to Ansible Project
me, too, how can solve this ?


Vào lúc 16:20:23 UTC+7 ngày Thứ Tư, 24 tháng 10, 2018, Tcpip đã viết:
Reply all
Reply to author
Forward
0 new messages