Closed amanda11 closed 2 years ago
The following workaround has been used successfully to install StackStorm using ansible 5.4 (from the EPEL repo):
localhost-py3 ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3.6
This forces ansible to use python3.6 on the remote boxes, and therefore finds the correct passlib module. No other problems found.
Installing ansible via pip3 is not a workaround because:
There are some hints in the kitchen-ansible
about how to specify the Ansible inventory, maybe that'll help with the workaround:
https://github.com/neillturner/kitchen-ansible/blob/master/provisioner_options.md#ansible-inventory
On the other side, I understand our problem is with passlib dependency: https://github.com/StackStorm/ansible-st2/blob/02b5ffbde1ce35666bf0c106b80659270c9c6000/roles/StackStorm.st2/vars/redhat_8.yml#L3
What if we'll try to install the passlib
dependency from pip instead of using the OS package to satisfy
htpasswd
requirements https://docs.ansible.com/ansible/latest/collections/community/general/htpasswd_module.html#requirements ?
Since 29th May problems have been seen on installation with ansible and EL8. The ansible version in EPEL has moved to 5.x which installs python38.
Error reported:
The problem is that the playbooks install python3-passlib which is a python 3.6 passlib module. But Ansible 5.x uses python3.8. There is no RPM built at moment for python3.8 passlib, see https://bugzilla.redhat.com/show_bug.cgi?id=2087268