mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
02ed223d49
commit
c7f4c97b18
1 changed files with 14 additions and 0 deletions
|
@ -69,3 +69,17 @@
|
|||
that:
|
||||
- "script_result1|changed"
|
||||
- "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…
Reference in a new issue