win_wait_for_process – Waits for a process to exist or not exist before continuing¶
New in version 2.7.
Waiting for a process to start or stop.
This is useful when Windows services behave poorly and do not enumerate external dependencies in their manifest.
- wait_for – Waits for a condition before continuing
The official documentation on the wait_for module.
- win_wait_for – Waits for a condition before continuing
The official documentation on the win_wait_for module.
- 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: absent timeout: 500 - name: Wait 300 seconds for 3 instances of cmd to start, waiting 5 seconds between each check win_wait_for_process: process_name_exact: cmd state: present timeout: 500 sleep: 5 process_min_count: 3
Common return values are documented here, the following are the fields unique to this module: