ajgreyling
ajgreyling

Reputation: 1436

Run Ansible-Playbook on localhost on Windows

I know Ansible supports Windows clients/nodes. What I really enjoy about Ansible is that I can create a Linux VM, pull a git repo that contains Ansible playbooks for and without any configuration or setup of a control server, I am able to run the playbook on the local machine.

Since you can execute Python on Windows, would it be possible to run roles/playbooks on localhost on Windows?

This would be the first step for running Ansible in a datacenter with only Windows where it is not possible to even run Linux in VirtualBox.

Upvotes: 6

Views: 8497

Answers (1)

techraf
techraf

Reputation: 68559

Ansible won't run on a windows control machine, as stated in the documentation:

Reminder: You Must Have a Linux Control Machine

Note running Ansible from a Windows control machine is NOT a goal of the project. Refrain from asking for this feature, as it limits what technologies, features, and code we can use in the main project in the future. A Linux control machine will be required to manage Windows hosts.

Cygwin is not supported, so please do not ask questions about Ansible running from Cygwin.

Upvotes: 5

Related Questions