issue #477: some more conditional tests.
This commit is contained in:
parent
bb9bb593e4
commit
e133b8dbb1
|
@ -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}}"
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
- meta: end_play
|
||||
when: not is_mitogen
|
||||
|
||||
- meta: end_play
|
||||
when: ansible_version.full < '2.4'
|
||||
|
||||
- mitogen_get_stack:
|
||||
delegate_to: "{{ physical_host }}"
|
||||
register: out
|
||||
|
|
Loading…
Reference in New Issue