# ansible is not connecting with servers

**URL:** <https://forum.ansible.com/t/ansible-is-not-connecting-with-servers/20720>\
**Category:** Ansible Project\
**Created:** [March 1, 2016, 12:05pm UTC](https://forum.ansible.com/t/ansible-is-not-connecting-with-servers/20720 "2016-03-01T12:05:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Warrich](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Ali\_Warrich](https://forum.ansible.com/u/Ali_Warrich)\
**Post date:** [March 1, 2016, 12:05pm UTC](https://forum.ansible.com/t/ansible-is-not-connecting-with-servers/20720/1 "2016-03-01T12:05:26Z")

</div>

Hi guys,  
I am trying to run a playbook but that is not working for me. I am encountering by the same error again and again.  
my ansible.cfg looks like:

[defaults]

# some basic default values…

inventory = /etc/ansible/hosts  
#library = /usr/share/my\_modules/  
remote\_tmp = $HOME/.ansible/tmp  
pattern = \*  
forks = 5  
poll\_interval = 15  
sudo\_user = root  
ask\_sudo\_pass = True  
#ask\_pass = True  
transport = ssh  
#remote\_port = 22  
module\_lang = C

and the error is :

SSH Error: ssh: Could not resolve hostname ControlMaster=auto: Name or service not known

That’s very strange to me. As when I am running another playbook it connects with all servers but when I only try to ping via ansible it gives me an error like this one.  
Any one have any idea about it?
