|
|
|
@ -16,9 +16,7 @@
|
|
|
|
|
src: "{{ansible_user_dir}}/.ansible_async/{{job.ansible_job_id}}"
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
#- debug: msg={{async_out}}
|
|
|
|
|
#vars:
|
|
|
|
|
#async_out: "{{result.content|b64decode|from_json}}"
|
|
|
|
|
#- debug: msg="{{result.content|b64decode|from_json}}"
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that:
|
|
|
|
@ -32,7 +30,6 @@
|
|
|
|
|
- async_out.invocation.module_args.creates == None
|
|
|
|
|
- async_out.invocation.module_args.executable == None
|
|
|
|
|
- async_out.invocation.module_args.removes == None
|
|
|
|
|
- async_out.invocation.module_args.stdin == None
|
|
|
|
|
- async_out.invocation.module_args.warn == True
|
|
|
|
|
- async_out.rc == 0
|
|
|
|
|
- async_out.start.startswith("20")
|
|
|
|
@ -40,3 +37,10 @@
|
|
|
|
|
- async_out.stdout == "hi"
|
|
|
|
|
vars:
|
|
|
|
|
async_out: "{{result.content|b64decode|from_json}}"
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that:
|
|
|
|
|
- async_out.invocation.module_args.stdin == None
|
|
|
|
|
when: ansible_version.full > '2.4'
|
|
|
|
|
vars:
|
|
|
|
|
async_out: "{{result.content|b64decode|from_json}}"
|
|
|
|
|