Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Ansible Windows Machine

Tags:

python

ansible

I have tried installing ansible through pip install ansible but whenever i get the following error trying to use it:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\ruan.greyling\AppData\Local\Programs\Python\Python311\Scripts\ansible.exe\__main__.py", line 4, in <module>
  File "C:\Users\ruan.greyling\AppData\Local\Programs\Python\Python311\Lib\site-packages\ansible\cli\__init__.py", line 42, in <module>
    check_blocking_io()
  File "C:\Users\ruan.greyling\AppData\Local\Programs\Python\Python311\Lib\site-packages\ansible\cli\__init__.py", line 34, in check_blocking_io
    if not os.get_blocking(fd):
           ^^^^^^^^^^^^^^^
AttributeError: module 'os' has no attribute 'get_blocking'

I have python and pip installed on the machine.

like image 481
Ruishoo Avatar asked Nov 30 '25 09:11

Ruishoo


1 Answers

This is why you are getting this error.

  • Windows without WSL is not natively supported as a control node (more in the documentation)
  • If you want to run the Control node on Windows use WSL

Good practice code repository and sync to your Linux Control node from Windows machine.

like image 92
Luca Avatar answered Dec 01 '25 23:12

Luca