请有人建议我如何在 Windows 10 上安装 Ansible,并且我尝试从 GIT Bash 执行相同操作,但没有帮助。
Error Log:
copying lib\ansible\galaxy\data\network\tests\inventory -> build\lib\ansible\galaxy\data\network\tests
copying lib\ansible\config\base.yml -> build\lib\ansible\config
copying lib\ansible\config\module_defaults.yml -> build\lib\ansible\config
error: symbolic link privilege not held
----------------------------------------
Command "c:\users\info2m\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\cygwin64\\tmp\\pip-install-vr60imm0\\ansible\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\cygwin64\tmp\pip-record-wh599uda\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\cygwin64\tmp\pip-install-vr60imm0\ansible\
答案1
Windows 不支持 Ansible
https://github.com/ansible/ansible/issues/31419#issuecomment-334787881
“我们不支持直接在 Windows 机器上安装 ansible。您需要一个类似 Linux 的操作系统来安装 ansible。这在http://docs.ansible.com/ansible/latest/intro_installation.html#control-machine-requirements”