win_wait_for_process – Waits for a process to exist or not exist before continuing¶
New in version 2.7.
Synopsis¶
- 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.
Parameters¶
See Also¶
See also
- 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.
Examples¶
- 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
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Charles Crossan (@crossan007)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.