I am trying to install the Ansible open source automation platform on Windows. There are many guides out there for how to install Ansible using Cygwin (eg. 1, 2).
However, I already have Git-Bash installed on Windows 7 (from here).
Is it possible to install Ansible in Windows, inside Git-Bash.
EDIT:
UPDATE:
I had a lot of problems with Cygwin.
- I installed Cygwin.
- Then I did
pip install PyYAML, jinja, paramiko, cryptography
, etc. I wanted to install the Ansible dependencies first and then dopip install ansible
only at the end. It did not installparamiko
andcryptography
successfully. Two packageslibffi
andncurses
were found to be missing. I re-ran the Cygwin installer and installedlibffi
. I could not findncurses
. - I restarted Cygwin and re-tried
pip install paramiko cryptography
. They did not install again and gave the same error message thatlibffi
andncurses
were missing. At that point, I gave up and uninstalled Cygwin. I did not try it again.
EDIT 2:
To answer this question, I did this:
- installed Virtualbox on Windows 7
- created a Virtualbox *buntu VM with LUbuntu 17.10
- installed all available system updates
- (optional) installed VirtualBox Linux guest additions (section 4.2.2.1 steps 2. and 3.)
pip install ansible
worked successfully-
installed text editor in VM
With this setup, I do everything related to Ansible directly in the LUbuntu VM.
Best Answer
Git-Bash is insufficient to install ansible, it is lack of build tools.
I recommend you try msys2(which git-bash base on), once install all ansible build dependencies, you can install ansible just by
pip install ansible
.