Ansible - Windows Installation

Card Puncher Data Processing


Ansible is not certified on Windows and will never. The best solution that we found was to run Ansible inside a docker container.


To install it:

Create the install directory

mkdir c:\ansible

Clone the repository

Clone the repository into the install directory

git clone c:\ansible

Install Docker for Windows

See Docker - Installation

Test Ansible

By asking the version, the Ansible wrapper should download the docker image and print the version at the console.

ansible --version
Ansible Version: 2.8
ansible 2.8.10
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.12 (default, Oct  8 2019, 14:14:10) [GCC 5.4.0 20160609]

Add the install directory into the PATH environment variable

To be able to run the ansible command line client from anywhere you would add the installation directory to your PATH environment variable

Windows Search Path

Discover More
Card Puncher Data Processing
Ansible - Installation

An installation page that stores requirement and links to the OS installation The control machine is where Ansible run. Ansible can be run from any machine with Python 2 (version 2.7) or Python...

Share this page:
Follow us:
Task Runner