2018-05-04 17:17:31 +00:00
|
|
|
- name: integration/runner/custom_perl_want_json_module.yml
|
2018-04-22 18:40:58 +00:00
|
|
|
hosts: test-targets
|
2018-04-04 23:11:29 +00:00
|
|
|
any_errors_fatal: true
|
2018-04-02 08:54:48 +00:00
|
|
|
tasks:
|
2018-04-18 14:43:54 +00:00
|
|
|
- custom_perl_want_json_module:
|
2018-04-02 08:54:48 +00:00
|
|
|
foo: true
|
2018-04-04 19:01:23 +00:00
|
|
|
with_sequence: start=1 end={{end|default(1)}}
|
|
|
|
register: out
|
|
|
|
|
|
|
|
- assert:
|
2019-01-23 12:44:08 +00:00
|
|
|
that:
|
2019-01-27 01:33:44 +00:00
|
|
|
- out.results[0].input.foo
|
2019-01-23 12:44:08 +00:00
|
|
|
- out.results[0].message == 'I am a want JSON perl script! Here is my input.'
|
|
|
|
|
|
|
|
- when: ansible_version.full > '2.4'
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- (not out.changed)
|
|
|
|
- (not out.results[0].changed)
|