Getting '500 WinRMTransport. [Errno 61] Connection refused' with Ubuntu server

I have a playbook that has been working well for developing locally in a vagrant box and deploying to remote staging environment.

Both are Ubuntu environments.

Today, I fired up a new Ubuntu EC2 instance for the production server.

With just port 22 open in the EC2 security group, running the playbook returns…

GATHERING FACTS ***************************************************************

fatal: [rez-inf-sync.linthwaite.com] => the connection attempt timed out

Allowing all traffic from my IP returns…

GATHERING FACTS ***************************************************************

fatal: [rez-inf-sync.linthwaite.com] => 500 WinRMTransport. [Errno 61] Connection refused

At one stage we considered deploying to the client’s remote Windows server, though it caused too much hassle so we stuck with Ubuntu.

Whilst experimenting with using ansible/Windows I installed pywinrm, which I thought might be causing the above WinRMTransport error.

But with pywinrm uninstalled, I get…

GATHERING FACTS ***************************************************************

fatal: [rez-inf-sync.linthwaite.com] => winrm is not installed

How do I tell ansible there are no Windows servers anywhere in the mix?

I’ve done a lot of research and this group is last resort!

Thanks for your help.

Pete

If it helps, the other EC2 instance in the AWS account, on a separate IP, is a Windows server.

P.

sounds like you have connection: winrm somewhere.

Thanks Brian.

I’ll hunt that down.

Cheers

P.

Job done Brian!

http://note.io/13gKGnW

Thanks a million.

cheers

P.