Playbook.yml
---
- name: connectionTest
hosts: Windows
tasks:
- name: "Windows Connect"
win_command: hostname
register: wincmd_out
Variable declared in Inventories Project/inventories/XXX_Local/
[Windows]
XXVMxxxxxxx
Error Message:
fatal: [XXVMxxxxxxx]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/tmp/awx_1636443_S7HHdB/cp/6b18046463\" does not exist\r\ndebug2: resolving \"XXVMxxxxxxx\" port 22\r\nssh: Could not resolve hostname XXVMxxxxxxx: Name or service not known",
"unreachable": true
}