When trying to runansible-playbookin a python virtual environment using thevenvmodule, ansible-playbook appears to discover the wrong python binary.requirements.txtcontains ansible-core==2.14.15 and kubernetes==26.1.0 and installs correctly in venv. I am usingconnection: localfor this playbook. Iss...
Here's an awful construct from one of my playbooks. The server has a Python app, with a virtualenv at {{ venv_bin }} that already has psycopg2 installed. Rather than also install psycopg2 systemwide, I set ansible_python_interpreter to p...
Summary In the latest version of Ansible, there has been a change in how the ansible_python_interpreter variable is handle. Setting it in this way doesn't work anymore: ansible_python_interpreter="/usr/bin/env python3" It still works in ...