- name: integration/async/result_binary_producing_json.yml gather_facts: true hosts: all any_errors_fatal: true tasks: - custom_binary_producing_json: async: 100 poll: 0 register: job - shell: sleep 1 - slurp: src: "{{ansible_user_dir}}/.ansible_async/{{job.ansible_job_id}}" register: result - debug: msg={{async_out}} vars: async_out: "{{result.content|b64decode|from_json}}" - assert: that: - async_out.changed == True - async_out.failed == False - async_out.msg == "Hello, world." - 'async_out.stderr == "binary_producing_json: oh noes\n"' vars: async_out: "{{result.content|b64decode|from_json}}"