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

**URL:** <https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894>\
**Category:** Ansible Project\
**Created:** [September 25, 2020, 3:08am UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894 "2020-09-25T03:08:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 25, 2020, 3:08am UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/1 "2020-09-25T03:08:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 25, 2020, 3:12am UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/2 "2020-09-25T03:12:35Z")

</div>

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]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [September 25, 2020, 9:20am UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/3 "2020-09-25T09:20:15Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 25, 2020, 12:32pm UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/4 "2020-09-25T12:32:04Z")

</div>

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](https://forum.ansible.com/uploads/short-url/hVjFzH3clLVENhtcdRbfyNj8LPy.yml) (5.17 KB)

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [September 25, 2020, 12:51pm UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/5 "2020-09-25T12:51:35Z")

</div>

> 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  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 25, 2020, 12:56pm UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894/6 "2020-09-25T12:56:16Z")

</div>

These files are Dependencies…
