My dynamic inventory requires the requests python package to load the hosts from an API, however I'm not able to install the package via pip. I guess because the playbook action uses its own virtual env?
I receive this error message telling me that the requests package is still missing, even tho I installed it via pip one step before.
[WARNING]: * Failed to parse /home/runner/work/myproject/deployment/ansible/inventory/prod.hcloud.yaml with
ansible_collections.hetzner.hcloud.plugins.inventory.hcloud plugin: Failed to import the required Python library (requests)
on fv-az189-444's Python /opt/pipx/venvs/ansible-core/bin/python. Please read the module documentation
and install it 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
My dynamic inventory requires the
requests
python package to load the hosts from an API, however I'm not able to install the package via pip. I guess because the playbook action uses its own virtual env?I receive this error message telling me that the
requests
package is still missing, even tho I installed it via pip one step before.