Discover correct Python package prefix
Based on whether the Ansible Python interpreter is Python 2 (the default on Ubuntu Xenial), or Python 3 (the default on Ubuntu Bionic), Ansible modules that rely on extra Python modules require either "python-" or "python3-" Ubuntu packages to function. Make sure we install the right one. Note that on any Ubuntu Bionic system that has events or async tasks enabled, and thus installs RabbitMQ, the Bionic rabbitmq-server package's dependency on python (that is, the Python 2 interpreter) will effectively pull Python 2 into that system, and many Ansible versions will use that interpreter by default, once it is installed. References: https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html https://packages.ubuntu.com/bionic/rabbitmq-server
Please register or sign in to comment