Ansible: How to change Python Version - Stack Overflow
stackoverflow.com › questions › 59716485Jan 13, 2020 · root@Network-Automation:~# ansible --version ansible 2.7.11 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
How to set up and use Python virtual environments for Ansible ...
www.redhat.com › sysadmin › python-venv-ansibleAug 18, 2021 · (ansible2.9)$ ansible --version ansible 2.9.0 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/devops/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/devops/python-venv/ansible2.9/lib64/python3.6/site-packages/ansible executable location = /home/devops/python-venv/ansible2.9/bin/ansible python version = 3.6.8 (default, Aug 24 2020, 17:57:11) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]