Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ansible windows client or host with Ansible linux server? Possible?

I am using Ansible for some infrastructure management problem for my project. I achieved this task using a Linux client like say to copy a bin file from Ansible server and install it on a client machine. This involves tasks in my playbooks using normal Linux commands like ssh, scp, ./bin etc.,

Now I want to achieve the same in a windows client. I couldn't find any good documentation to try it out. If anyone of you have tried using Ansible with Windows client then it would be great if you could share the procedures or prototype or any piece of information to start with and progress further on my problem.

like image 283
Googler Avatar asked Jul 10 '13 22:07

Googler


People also ask

Which protocol does Ansible use to communicate with Linux and Windows?

Ansible uses SSH protocol to connect to servers and run tasks.

Can Ansible manage Windows hosts?

Can Ansible run on Windows?  No, Ansible can only manage Windows hosts. Ansible cannot run on a Windows host natively, though it can run under the Windows Subsystem for Linux (WSL).

Can you run Ansible from a Windows machine?

Can Ansible run on Windows? ¶ No, Ansible cannot run on a Windows host and can only manage Windows hosts, but Ansible can be run under the Windows Subsystem for Linux (WSL). The Windows Subsystem for Linux is not supported by Microsoft or Ansible and should not be used for production systems.


2 Answers

There's no built-in Windows support for Ansible today. If you search the mailing list, you'll find some references to people having some minimal success with things like CygWin. You should probably check out the mailing list and stay tuned.

like image 98
Tybstar Avatar answered Sep 27 '22 23:09

Tybstar


Starting in version 1.7, Ansible also contains support for managing Windows machines. This uses native powershell remoting, rather than SSH. See the Ansible documentation website for details on Windows support for Ansible.

like image 45
skinnedKnuckles Avatar answered Sep 27 '22 21:09

skinnedKnuckles