# Ansible fails to run any modules from command line

**URL:** <https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [October 16, 2013, 7:18pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696 "2013-10-16T19:18:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillem\_Liarte](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Post date:** [October 16, 2013, 7:18pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/1 "2013-10-16T19:18:36Z")

</div>

Using default settings, with one entry for the same host, installation from EPEL, on Centos 6.4, just trying the ping module:

ansible all -m ping

Traceback (most recent call last):  
File “/usr/bin/ansible”, line 157, in   
(runner, results) = cli.run(options, args)  
File “/usr/bin/ansible”, line 123, in run  
diff=options.check  
File “/usr/lib/python2.6/site-packages/ansible/runner/ **init**.py”, line 187, in **init**  
cmd = subprocess.Popen([‘ssh’,‘-o’,‘ControlPersist’], stdout=subprocess.PIPE, stderr=subprocess.PIPE)  
File “/usr/lib64/python2.6/subprocess.py”, line 639, in **init**  
errread, errwrite)  
File “/usr/lib64/python2.6/subprocess.py”, line 1228, in \_execute\_child  
raise child\_exception  
OSError: [Errno 2] No such file or directory

This will result in the same error:

ansible localhost -a “/bin/echo hello”

Python version: python-2.6.6-36.el6.x86\_64

I have two other running ansible deployments (with RHEL 6.4) at work that ran perfectly from first day, I see this type of error for first time. Looking in this group I found similar problems when using external nodes classification or inventory scripts, but this is not the case.

Does anybody see what is wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![Guillem\_Liarte](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Post date:** [October 16, 2013, 7:38pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/2 "2013-10-16T19:38:32Z")

</div>

Ansible version is 1.3.2  
Python verison is 2.6.6

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 16, 2013, 7:58pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/3 "2013-10-16T19:58:12Z")

</div>

Please see the other thread about this for replies.

---

<div class="post-metadata">

**Author:** ![Guillem\_Liarte](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Post date:** [October 16, 2013, 8:08pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/4 "2013-10-16T20:08:28Z")

</div>

All-right thanks. What other post? If you mean the duplicate of this one, I deleted it, as it was a mistake.

Or you mean other posts about this that I have not found using the search?

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 16, 2013, 8:49pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/5 "2013-10-16T20:49:20Z")

</div>

The other thread you started, which is “Ansible not even running the ping module”

---

<div class="post-metadata">

**Author:** ![Guillem\_Liarte](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Post date:** [October 16, 2013, 9:51pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696/6 "2013-10-16T21:51:45Z")

</div>

Michael,

I deleted that one.

It took some time to appear in the list, so I though it had not been processed, that is why started this other. I do not see it any more in the list. If you have the chance to merge the two or to C&P the answer, I would be grateful.

Thanks.
