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