HewlettPackard / ilo-ansible-collection

Ansible Collection and Sample Playbooks for HPE iLO
Apache License 2.0
40 stars 20 forks source link

Library redfish not found on /usr/libexec/platform-python #3

Closed DungKHoang closed 2 years ago

DungKHoang commented 2 years ago

I configure the following items on my RedHat machine:

When executing the playbook: ansible-playbook this_yml, I get this error message: "Failed to import the required Python library (redfish) on centos-ctrlctr's Python /usr/libexec/platform-python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

Any idea why I get this error? Thanks for helping HKD

DungKHoang commented 2 years ago

Found the solution You need to install redfish first: pip3 install redfish