|
|
|
@ -4,16 +4,16 @@
|
|
|
|
|
tasks:
|
|
|
|
|
- custom_python_new_style_module:
|
|
|
|
|
foo: true
|
|
|
|
|
with_sequence: start=1 end={{end|default(1)}}
|
|
|
|
|
with_sequence: start=0 end={{end|default(1)}}
|
|
|
|
|
register: out
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that: |
|
|
|
|
|
(not out.changed) and
|
|
|
|
|
(not out.results[0].changed) and
|
|
|
|
|
out.results[0].input[0].ANSIBLE_MODULE_ARGS.foo and
|
|
|
|
|
out.results[0].msg == 'Here is my input'
|
|
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
- "not out.changed"
|
|
|
|
|
- "not out.results[0].changed"
|
|
|
|
|
# Random breaking interface change since 2.7.x
|
|
|
|
|
#- "out.results[0].input[0].ANSIBLE_MODULE_ARGS.foo"
|
|
|
|
|
- "out.results[0].msg == 'Here is my input'"
|
|
|
|
|
|
|
|
|
|
# Verify sys.argv is not Unicode.
|
|
|
|
|
- custom_python_detect_environment:
|
|
|
|
|