mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
parent
02ed223d49
commit
c7f4c97b18
1 changed files with 14 additions and 0 deletions
|
@ -69,3 +69,17 @@
|
||||||
that:
|
that:
|
||||||
- "script_result1|changed"
|
- "script_result1|changed"
|
||||||
- "script_result2.state == 'absent'"
|
- "script_result2.state == 'absent'"
|
||||||
|
|
||||||
|
# async
|
||||||
|
- name: test task failure with async param
|
||||||
|
|
||||||
|
script: /some/script.sh
|
||||||
|
async: 2
|
||||||
|
ignore_errors: true
|
||||||
|
register: script_result3
|
||||||
|
|
||||||
|
- name: assert task with async param failed
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- 'script_result3.failed'
|
||||||
|
- 'script_result3.msg == "async is not supported for this task."'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue