Ansible - Windows Installation

1 - About

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

3 - Steps

To install it:

3.1 - Create the install directory

mkdir c:\ansible

3.2 - Clone the repository

Clone the repository into the install directory

git clone c:\ansible

3.3 - Install Docker for Windows

See Docker - Installation

3.4 - 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]

3.5 - 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

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap