1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

async+script: add integration test (#23818)

see #23729
This commit is contained in:
Guillaume Coré 2017-04-21 07:06:01 +02:00 committed by Brian Coca
parent 02ed223d49
commit c7f4c97b18

View file

@ -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."'