Thanks Abhijeet for the answer
Using ansible in centos 7 in which python2 is set as default interpreter
and some utilities is based on python2 like yum so can not change the
python interpreter as default
Even try setting up python interpreter
- within playbook
- in Ansible.cfg
- in inventor
Python 2 is End of life and not supported by Ansible. Also, kubernetes.core
collection is supported on Python3 (
https://github.com/ansible-collections/kubernetes.core#python-support). I
would recommend you upgrade to the latest Python version. After installing
the latest Python 3 version use
```
Hi team,
I'm running ansible on centos 7 in which python 2 coming by default and
some dependencies like yum etc is depended on that.
When Ansible is install it picking the default python2 as INTERPRETER
Ansible --version
ansible 2.9.27 config file = /etc/ansible/ansible.cfg configured module