Is there a way, we can use ansible to run the "ConfigureRemotingForAnsible.ps1 script (https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1), on the target machine, before it even starts to talk to the remote machine?
Some of our old machines, need to have the script run maually, before ansible even starts talking to them, else we get an error:
UNREACHABLE! => {“changed”: false, “msg”: “basic: HTTPSConnectionPool(host=‘xx.xx.xx.xx’, port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fae8a002130>: Failed to establish a new connection: [Errno 111] Connection refused’))”, “unreachable”: true}
Thanks