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

70 views
Skip to first unread message

Prabhakaran Karuppaih

unread,
Sep 24, 2020, 11:08:15 PM9/24/20
to Ansible Project
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

Prabhakaran Karuppaih

unread,
Sep 24, 2020, 11:12:35 PM9/24/20
to Ansible Project
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]**********************************************************************************

Dick Visser

unread,
Sep 25, 2020, 5:20:50 AM9/25/20
to ansible...@googlegroups.com
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...
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b17846ba-42dc-496e-a0c9-db1dd04c059bn%40googlegroups.com.




--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Prabhakaran Karuppaih

unread,
Sep 25, 2020, 8:32:41 AM9/25/20
to ansible...@googlegroups.com
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


.


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/7yrNy-5rSzI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNyvAecDXN%3Djg3-1dFj3jtu3%2BsC2kiiXz_QOSoeuFCjEQ%40mail.gmail.com.
Starfish.yml

Stefan Hornburg (Racke)

unread,
Sep 25, 2020, 8:52:13 AM9/25/20
to ansible...@googlegroups.com
On 9/25/20 2:32 PM, Prabhakaran Karuppaih wrote:
> 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
> ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b17846ba-42dc-496e-a0c9-db1dd04c059bn%40googlegroups.com.
>
>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/7yrNy-5rSzI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com
> <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CANguL_zxbmj-hpaQXyxwdyq8d%2BT2cyZrESDbjTfKWjGrDbbahg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CANguL_zxbmj-hpaQXyxwdyq8d%2BT2cyZrESDbjTfKWjGrDbbahg%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Prabhakaran Karuppaih

unread,
Sep 25, 2020, 8:56:56 AM9/25/20
to ansible...@googlegroups.com
These files are Dependencies...

To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7483c7ed-dbf7-d366-eb2d-4c517103d534%40linuxia.de.
Reply all
Reply to author
Forward
0 new messages