Minimum number of process matching the supplied pattern to satisfy present condition.
Only applies to present.
process_name_exact
list
The name of the process(es) for which to wait. The name of the process(es) should not include the file extension suffix.
process_name_pattern
string
RegEx pattern matching desired process(es).
sleep
integer
Default:
1
Number of seconds to sleep between checks.
Only applies when waiting for a process to start. Waiting for a process to start does not have a native non-polling mechanism. Waiting for a stop uses native PowerShell and does not require polling.
state
string
Choices:
absent
present ←
When checking for a running process present will block execution until the process exists, or until the timeout has been reached. absent will block execution until the process no longer exists, or until the timeout has been reached.
When waiting for present, the module will return changed only if the process was not present on the initial check but became present on subsequent checks.
If, while waiting for absent, new processes matching the supplied pattern are started, these new processes will not be included in the action.
timeout
integer
Default:
300
The maximum number of seconds to wait for a for a process to start or stop before erroring out.
-name:Wait 300 seconds for all Oracle VirtualBox processes to stop. (VBoxHeadless, VirtualBox, VBoxSVC)win_wait_for_process:process_name_pattern:'v(irtual)?box(headless|svc)?'state:absenttimeout:500-name:Wait 300 seconds for 3 instances of cmd to start, waiting 5 seconds between each checkwin_wait_for_process:process_name_exact:cmdstate:presenttimeout:500sleep:5process_min_count:3