mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
wait_for_connection: Update the docs to implementation (#22400)
* Update the docs to conform to implementation Somehow the docs were still mentioning a default timeout of 300 seconds. Whereas the implementation defaults to 600 seconds. * Improve examples even more
This commit is contained in:
parent
c57729944b
commit
654e95ea49
1 changed files with 6 additions and 5 deletions
|
@ -48,18 +48,18 @@ options:
|
|||
timeout:
|
||||
description:
|
||||
- Maximum number of seconds to wait for.
|
||||
default: 300
|
||||
default: 600
|
||||
author: "Dag Wieers (@dagwieers)"
|
||||
'''
|
||||
|
||||
EXAMPLES = r'''
|
||||
- name: Wait 300 seconds for target connection to become reachable/usable
|
||||
- name: Wait 600 seconds for target connection to become reachable/usable
|
||||
wait_for_connection:
|
||||
|
||||
- name: Wait 600 seconds, but only start checking after 60 seconds
|
||||
- name: Wait 300 seconds, but only start checking after 60 seconds
|
||||
wait_for_connection:
|
||||
delay: 60
|
||||
timeout: 600
|
||||
timeout: 300
|
||||
|
||||
# Wake desktops, wait for them to become ready and continue playbook
|
||||
- hosts: all
|
||||
|
@ -89,11 +89,12 @@ EXAMPLES = r'''
|
|||
customization:
|
||||
hostname: '{{ vm_shortname }}'
|
||||
runonce:
|
||||
- powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -CertValidityDays 3650 -ForceNewSSLCert
|
||||
- powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Wait for system to become reachable over WinRM
|
||||
wait_for_connection:
|
||||
timeout: 900
|
||||
|
||||
- name: Gather facts for first time
|
||||
setup:
|
||||
|
|
Loading…
Reference in a new issue