使用 ansible-tower 连接到我的 Windows 机器时出现以下错误。
我确实使用了连接到 Windows 的 ansible 塔,他们建议在以下位置使用以下内容inventories > variables:
ansible_connection: winrm
ansible_ssh_port: 5986
ansible_winrm_server_cert_validation: ignore
Run Code Online (Sandbox Code Playgroud)
但是当我运行作业时它仍然失败,看起来它仍在尝试使用ssh不winrm连接。以下是我的 ansible tower 工作的输出:
> ansible-playbook 2.4.1.0
config file = /etc/ansible/ansible.cfg
> configured module search path = [u'/var/lib/awx/.ansible/plugins/modules',
> u'/usr/share/ansible/plugins/modules'] ansible python module
> location = /usr/lib/python2.7/site-packages/ansible executable
> location = /usr/bin/ansible-playbook python version = 2.7.5
> (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat
> 4.8.5-14)] Using /etc/ansible/ansible.cfg as config file …Run Code Online (Sandbox Code Playgroud)