# Problems getting started

**URL:** <https://forum.ansible.com/t/problems-getting-started/19124>\
**Category:** Ansible Project\
**Created:** [August 27, 2015, 10:26am UTC](https://forum.ansible.com/t/problems-getting-started/19124 "2015-08-27T10:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Hradek](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Stephan\_Hradek](https://forum.ansible.com/u/Stephan_Hradek)\
**Post date:** [August 27, 2015, 10:26am UTC](https://forum.ansible.com/t/problems-getting-started/19124/1 "2015-08-27T10:26:26Z")

</div>

Hi!

I’ve heard about ansible at FrOSCon 10 and wanted to give it a try.

So I cloned it from git, switched to 1.9.2 and installed it in my Cygwin.

Now I wanted to follow [http://docs.ansible.com/ansible/intro\_getting\_started.html](http://docs.ansible.com/ansible/intro_getting_started.html)

I’ve created /etc/ansible/hosts with just one host in it.

Now I’m trying to do my first

`  
ansible all -m ping

`

I can connect to the host just fine with ssh. Authentication is done using pAgent and there is a jumpbox in between which is all configured in my ~/.ssh/config.

First the test failed and suggested to use -vvvv. When I did so, I noticed that ansible was using the wrong user (“cygwinme” instead of “linuxme”) despite the fact that my .ssh/config has a section:

`  
Host \*  
User linuxme  
ServerAliveInterval 300  
ServerAliveCountMax 2

`

So I ran

`ansible all -vvvvv -u linuxme-m ping`

and got this output. I have no clue what to do next ☹

`  
 ESTABLISH CONNECTION FOR USER: linuxme  
 REMOTE\_MODULE ping  
 EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/home/cygwinme/.ansible/cp/ansible-ssh-%h-%p-%r” -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=linuxme -o ConnectTimeout=10 myhost /bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1440670972.57-249291543025148 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1440670972.57-249291543025148 && echo $HOME/.ansible/tmp/ansible-tmp-1440670972.57-249291543025148’  
myhost | FAILED =\> SSH Error: muxserver\_listen: link mux listener /home/cygwinme/.ansible/cp/ansible-ssh-myhost.my.do.main-22-linuxme.C6yJdMy7SthQH53z =\> /home/cygwinme/.ansible/cp/ansible-ssh-myhost.my.do.main-22-linuxme: Operation not permitted  
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.

`

---

<div class="post-metadata">

**Author:** ![Will\_Dennis](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Post date:** [August 27, 2015, 12:23pm UTC](https://forum.ansible.com/t/problems-getting-started/19124/2 "2015-08-27T12:23:29Z")

</div>

May be wrong at this point, but I don't think Ansible supports being run on Windiws/Cygwin... Have use use a Linux or OS X control machine.

If you only use Windows, installing VirtualBox on your PC (or any other hypervisor sw) and creating a Ubuntu control box is probably the way to go...

- Will

---

<div class="post-metadata">

**Author:** ![Joseph\_DJOMEDA](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Post date:** [August 27, 2015, 1:26pm UTC](https://forum.ansible.com/t/problems-getting-started/19124/3 "2015-08-27T13:26:25Z")

</div>

Hello Stephan,

I suggest you install vagrant on your windows machine. Create 2 boxes. one being the ansible box (controller or server) the second being the controlled node.

I also suggest 2 tutorials :

[http://www.mycodingpains.com/introduction-to-ansible/](http://www.mycodingpains.com/introduction-to-ansible/) (Disclaimer: I am the author)  
[https://serversforhackers.com/an-ansible-tutorial](https://serversforhackers.com/an-ansible-tutorial)

The second tutorial for very crucial for my understanding of ansible. I didn’t know nginx at that time so some of the examples at some point didn’t work for me.

All the best

Best Regards,

---

<div class="post-metadata">

**Author:** ![Stephan\_Hradek](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Stephan\_Hradek](https://forum.ansible.com/u/Stephan_Hradek)\
**Post date:** [August 27, 2015, 2:09pm UTC](https://forum.ansible.com/t/problems-getting-started/19124/4 "2015-08-27T14:09:44Z")

</div>

I found this: [https://servercheck.in/blog/running-ansible-within-windows](https://servercheck.in/blog/running-ansible-within-windows)

I also (kind of) solved the problem by setting “ControlManster=no” for ssh in ansible.cfg
