How to run my Playbook using the Python 3.8.5 as an interpreter?

Hi Members,
I tried running my ansible playbook using below linux command on CentOS 7 (Minimal Install - Command line only). But Unfortunately I am getting an error message. How to run it properly using my altinstalled Python 3.8.5. And also How to know on which folder the Python 3.8.5 is installed in my Linux…

ansible-playbook starfish.yml -e “ansible_python_interpreter=usr/src/python3”

The above command returns an error message like this:
No such file or Directory.

How to fix this…

Please Help…

With Hope,
Prabhakaran

In the above message, I mentioned the error is just: “No such file or Directory” but I forgot the mention the in which part of the playbook where I am the getting error is:

TASK [Gathering Facts]**********************************************************************************

Hi

Ansible is meant to automate system administration tasks.
This assumes those system administration tasks are known, in place,
and working as expected.

The errors you report suggest that this is not the case.
Try to achieve your task without ansible first. Once that works, then
automate the steps using ansible.

Learning system administration by using ansible is the wrong way around imho...

Hi Sir,
Yes. You are 100% correct. Let me explain my scenario. Actually I am reading a book called: Asterisk - The Definitive Guide 5th Edition. In that book only, the Author just simply says:

Create an Ansible playbook in the file ~/ansible/playbooks/starfish.yml

and Printed all the codes attached with this email just like that…

What to do? Is there someone here who can help me convert that into Linux commands… or Which would be the right place to approach for. Please reply…

With Hope,
Prabhakaran

.

(attachments)

Starfish.yml (5.17 KB)

Hi Sir,
Yes. You are 100% correct. Let me explain my scenario. Actually I am reading a book called: Asterisk - The
Definitive Guide 5th Edition. In that book only, the Author just simply says:

Create an Ansible playbook in the file ~/ansible/playbooks/starfish.yml

and Printed all the codes attached with this email just like that...

What to do? Is there someone here who can help me convert that into Linux commands.. or Which would be the right place
to approach for. Please reply...

With Hope,
Prabhakaran

Is this file which you attached the original? It doesn't install Asterisk at all.

Regards
         Racke

These files are Dependencies…