You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
529 B
YAML
20 lines
529 B
YAML
- name: integration/runner/custom_perl_want_json_module.yml
|
|
hosts: test-targets
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- custom_perl_want_json_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 want JSON perl script! Here is my input.'
|
|
|
|
- when: ansible_version.full > '2.4'
|
|
assert:
|
|
that:
|
|
- (not out.changed)
|
|
- (not out.results[0].changed)
|