- name: integration/runner/custom_perl_json_args_module.yml hosts: test-targets any_errors_fatal: true tasks: - custom_perl_json_args_module: foo: true with_sequence: start=1 end={{end|default(1)}} register: out - assert: that: - out.results[0].input.foo - out.results[0].message == 'I am a perl script! Here is my input.' fail_msg: out={{out}} - assert: that: - (not out.changed) - (not out.results[0].changed) fail_msg: out={{out}} when: - ansible_version.full is version('2.4', '>=', strict=True) tags: - custom_perl_json_args_module