Install a Babun (Cygwin) Shell and Ansible for Windows - Comments
By Chris Gilbert
Old Article Comments
I exported these from my old wordpress blog, so they are a bit out of date, but I thought I’d keep them around for posterity.
[mat] - Oct 1, 2015 Thanks for sharing this !
mirzawaqasahmed - Nov 6, 2015 Hi Chris, Thanks for sharing this. However when i am running ansible-playbook it first gave me following error…
GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 0 \[main\] python2.7 8168 child\_info\_fork::abort: address space needed by '\_speedups.dll' (0x6D0 000) is already occupied Traceback (most recent call last): File "/opt/ansible/bin/ansible-playbook", line 324, in sys.exit(main(sys.argv\[1:\])) File "/opt/ansible/bin/ansible-playbook", line 264, in main pb.run() File "/opt/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 348, in run if not self.\_run\_play(play): File "/opt/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 739, in \_run\_play self.\_do\_setup\_step(play) File "/opt/ansible/lib/ansible/playbook/\_\_init\_\_.py", line 629, in \_do\_setup\_step accelerate\_port=play.accelerate\_port, File "/opt/ansible/lib/ansible/runner/\_\_init\_\_.py", line 233, in \_\_init\_\_ cmd = subprocess.Popen(\['ssh','-o','ControlPersist'\], stdout=subprocess.PIPE, stderr=subprocess. PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in \_\_init\_\_ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1223, in \_execute\_child self.pid = os.fork() OSError: \[Errno 11\] Resource temporarily unavailable then after running the ansible-playbook command gain, its giving me the following error: GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[default\] => private\_key\_file (/.ssh/ansible-windows-ssh-key) is group-readable or world-readable and thus insecure - you will probably get an SSH failure TASK: \[ensure ntpd is at the latest version\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* FATAL: no hosts matched or all hosts have already failed -- aborting
ANY IDEA OF WHY IT IS HAPPENING. Thanks in advance Waqas
Ansible tutorial - part 1 - intro to Ansible - Jun 6, 2016 If you are using Windows, it’s a bit more hassle, unless you already have the Windows with Bash terminal! If you do, simply use APT for installing Ansible. However if you don’t have it yet, you need to install more things. On our Windows machines we use Babun (much better version of Cygwin, if you didn’t hear about it, check it out right now!). To install Ansible with Babun, please use this tutorial. […]
[mcfo] - Sep 3, 2016
Thanks! Regarding right-click pasting into vim: Add the line set mouse-=a
to your ~/.vimrc and it should work.
[Zoran] - Sep 0, 2016 I see the issue below: jinja2 is installed but seems to be unknown to ansible. Any suggestions? Thanks.
pact install python-jinja2`
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
setup.ini taken from the cache Package python-jinja2 is already installed, skipping { ~ }
» ansible ~ `Traceback (most recent call last): File "/opt/ansible/bin/ansible", line 36, in from ansible.runner import Runner File "/opt/ansible/lib/ansible/runner/\_\_init\_\_.py", line 32, in import jinja2 ImportError: No module named jinja2
[mcfo] - Sep 3, 2016 There were more problems, but I fixed them using this thread: https://github.com/babun/babun/issues/315
Kyp - Nov 4, 2016
Hello I had some issue with babun and bash. i uncomment this part of the env-setup , and change elif
into if
When run using source as directed, $0
gets set to bash
, so we must use $BASH_SOURCE
if [ -n "$BASH_SOURCE" ] ; then echo bash
HACKING_DIR=$(dirname "$BASH_SOURCE") if [ $(basename -- "$0") == "env-setup" ]; then echo basename HACKING_DIR=$(dirname "$0")
Please comment below. You'll need a GitHub account to add them, but creating one is free.