I have a working Docker container based on CentOS 7.  Inside it, I 
installed openssh-clients-6.6 and Ansible 1.9.4.  I can SSH from the 
container to the managed node (another CentOS server on the network).  I 
can SSH from the managed node to the server that supports the Docker 
container.  I'm trying to get Ansible to work for the first time.

Ansible seems installed because when I run ansible --version, the response 
is correct (1.9.4).  In the docker container, I run this:

ansible all -m ping -vvvv

It fails.  I get an error like this:  

"ESTABLISH CONNECTION FOR USER: root
REMOTE MODULE: ping ...
3.3.3.3 | FAILED => Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible...__init__.py, line ... in 
_executor
...
File /usr/lib/python2.7/... in _executor_internal return self...
File /usr/lib/python2.7/...stdout=...
...

OSError: [Errno 2] No such file or directory"

What file is missing?

The IP address (3.3.3.3) in /etc/ansible/hosts is correct.  It exists under 
a group heading with brackets.

I don't know if this problem has to do with Linux.  The files that were 
listed in the error message did exist in the Docker container.  

How do I ping other servers?  I tried running a basic playbook.  It failed 
with a similar error.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f4f3e139-9fa3-420a-93c2-52892e111dbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to