Not sure if i’m using the wait_for module correctly on two windows host. I’m getting the error below when trying to check if a port is open from a source windows host to a target windows host.
Wondering if i’m using the module correctly or if this even possible when both hosts are windows. I’ve tried the same playbook on two unix host and it worked.
The wait_for module is a Python module and can’t be run on a Windows host. You can either delegate to the localhost (Ansible controller) and run it from there, or use the win_wait_for module which was added in Ansible 2.4 https://docs.ansible.com/ansible/2.4/win_wait_for_module.html.
Thanks
Jordan