jacob
asked Oct 30 2021
Answer
This problem can have multiple solutions somne of them are here:
1:
Set ansible_python_interpreter: /usr/bin/python3 variable for all hosts that have python3 installed by default
OR
2: you can unisntall the ansible and try to install ansible using pip installer
$ pip3 install ansible
then when you check it will prompt
$ ansible --version | grep "python version"
python version = 3.6.2 (default, Sep 22 2017, 08:28:09) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]
linuxhelp
asked Oct 30 2021
Related tutorials in Ansible “ansible_python_interpreter” Error
Related forums in Ansible “ansible_python_interpreter” Error
Facing - pip error while installing Python: Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
Sep 29 2018
Ansible “ansible_python_interpreter” Error
i have already installed python on my linux machine so after installing ansible it got automatically connect with old python version. thats why i am getting this error. Please help me how to change python version