Closed klodoma closed 2 years ago
You mentioned "one of the servers". Did it work on others?
Did you apt install python3
before using this role? That would be a standard thing to do on any server before using Ansible.
I've set up a few Ubuntu 22.04 servers on different hosts (including the stock ISO) with this role recently and everything worked.
Yes, I have 2 servers for this use-case. On one is working on the other I get this error. Not sure where to start with the debugging :)
python3
is installed.
Did you upgrade one from Ubuntu 20.04 to 22.04 where as the other is freshly 22.04?
Did you upgrade one from Ubuntu 20.04 to 22.04 where as the other is freshly 22.04?
Both are new installations, no upgrades.
One is a plain ubuntu installations(on this one worked). The other(this one failed) came with PLESK admin interface which already installs quite some stuff on it so that might interfere a bit. Why it fails, beats me at this moment.
I never used PLESK but it might be worth checking into their docs or Google on why it would make pip3
unavailable. Did you set your Ansible Python interpreter to python3, that would be necessary if your system has both Python 2 and Python 3 installed.
pip3 is present.
Maybe this screenshot helps?
pip3 is present.
It's not a matter of being present or not. Did you set your Ansible Python interpreter with this ansible.cfg
modification?
[defaults]
ansible_python_interpreter = /usr/bin/python3
I'll give up on this. These are test setups, maybe on the one that fails too much was changed already. I'll reinstall everything and see how that goes. Closing this for the moment.
I tried this package out, but on one of the servers I am getting this error:
I tried deleting
/usr/local/lib/docker/virtualenv
but it didn't helped.The server is running on Ubuntu 22