ansible all -m win_ping xx.xxx.xx.xx | FAILED! => { "msg": "winrm or requests is not installed: No module named winrm" }
Ниже приведены мои настройки
Исходный компьютер MacOS: Pywinrm установлен успешно
pip list installed | grep winrm DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pywinrm 0.4.1
Вкл. windows: Winrm включен на целевой машине windows
C:\Users\XXXXX\Desktop> winrm qc WinRM service is already running on this machine. WinRM is already set up for remote management on this computer.
Ansible версия на моем компьютере
ansible --version ansible 2.9.0 config file = /Users/xxxxx/.ansible.cfg configured module search path = [u'/Users/xxxxxx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /Library/Python/2.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.16 (default, Dec 3 2019, 07:02:07)
Пожалуйста, помогите мне решить эту проблему. Спасибо.