Re: [ansible-project] Ansible not even running the ping module

420 views
Skip to first unread message

Michael DeHaan

unread,
Oct 16, 2013, 3:56:39 PM10/16/13
to ansible...@googlegroups.com
That's curious.

Do you have a "ssh" in path?

is it excutable by you?

What is the OS type you are running from?

What happens if you from the CLI run

ssh -o ControlPersist

?

Thanks!





On Wed, Oct 16, 2013 at 3:37 PM, Guillem Liarte <guillem...@googlemail.com> wrote:
Centos 6.4
python 2.6.6
ansible 1.3.2

ansible all -m ping -vvv

Traceback (most recent call last):
  File "/usr/bin/ansible", line 157, in <module>
    (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 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


This happens when trying to run any module. I have seen someone in github blaming an old manual install, but this is a fresh one.

I have a working ansible setup in a RHEL 6.4 at work.


What do you think is happening?

Thanks.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.



--
Michael DeHaan <mic...@ansibleworks.com>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

Guillem Liarte

unread,
Oct 16, 2013, 5:58:25 PM10/16/13
to ansible...@googlegroups.com
Micheal,

Sorry for the confusion, I found this duplicate thread.

Indeed, openssh-clients was missing. Now it looks much better.

Thanks for pointing me to the right direction!

Guillem

Michael DeHaan

unread,
Oct 16, 2013, 6:36:50 PM10/16/13
to ansible...@googlegroups.com
If you want to open a ticket on github we can make that print an error when the SSH tools are missing.

(Though this hasn't happened before, I'd much rather not share a traceback)

Thanks!
Reply all
Reply to author
Forward
0 new messages