hi
I have 2 versions of ansible installed on my Mac.(it was not intentional)
One version was not installed through pip and the other version was installed through pip.
I had to manually fix some permissions issues and now that those are addressed my terminal (VSCode) invokes the older version rather than the newer version.
What determines which version is run when there are multiple versions on a computer?
(from what I have read, pip does not install an ansible.cfg file and I don’t know if that is where the setting is)
I thought it might be the $PATH in the terminal but the path includes both versions.
this is the version ansible 3.7.9(core 2.11.12). This was not installed through pip
% ansible --version
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current
version: 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) [Clang 6.0 (clang-600.0.57)]. This feature will be removed
from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
ansible [core 2.11.12]
config file = None
configured module search path = [‘/Users/davemastropolo/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ansible
ansible collection location = /Users/davemastropolo/.ansible/collections:/usr/share/ansible/collections
executable location = /Library/Frameworks/Python.framework/Versions/3.7/bin//ansible
python version = 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) [Clang 6.0 (clang-600.0.57)]
jinja version = 3.1.2
libyaml = True
this (below) is the newer version installed through pip:
this was invoked through the terminal prior to fixing the permission issue on one of the directories (it was invoked but failing due to the permission issue)
Once the permission issue was addressed, ansible now invokes the older version (above)
% python3 -m pip list
Package Version
ansible 8.2.0
ansible-core 2.15.2
certifi 2023.5.7
cffi 1.15.1
cryptography 41.0.3
Jinja2 3.1.2
MarkupSafe 2.1.3
packaging 23.1
pip 23.1.2
pycparser 2.21
PyYAML 6.0.1
resolvelib 1.0.1
setuptools 65.5.0
warm regards
Dave