You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
wait_for_connection - Waits until remote system is reachable/usable¶
-name:Wait 600 seconds for target connection to become reachable/usablewait_for_connection:-name:Wait 300 seconds, but only start checking after 60 secondswait_for_connection:delay:60timeout:300# Wake desktops, wait for them to become ready and continue playbook-hosts:allgather_facts:notasks:-name:Send magic Wake-On-Lan packet to turn on individual systemswakeonlan:mac:'{{mac}}'broadcast:192.168.0.255delegate_to:localhost-name:Wait for system to become reachablewait_for_connection:-name:Gather facts for first timesetup:# Build a new VM, wait for it to become ready and continue playbook-hosts:allgather_facts:notasks:-name:Clone new VM, if missingvmware_guest:hostname:'{{vcenter_ipaddress}}'name:'{{inventory_hostname_short}}'template:Windows 2012R2customization:hostname:'{{vm_shortname}}'runonce:-powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSPdelegate_to:localhost-name:Wait for system to become reachable over WinRMwait_for_connection:timeout:900-name:Gather facts for first timesetup:
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>