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.
25 lines
748 B
YAML
25 lines
748 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: integration/runner__custom_binary_single_null.yml
|
|
custom_binary_single_null:
|
|
foo: true
|
|
with_sequence: start=1 end={{end|default(1)}}
|
|
ignore_errors: true
|
|
register: out
|
|
|
|
- hosts: all
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- assert:
|
|
that: |
|
|
out.failed and
|
|
out.results[0].failed and
|
|
out.results[0].msg == 'MODULE FAILURE' and
|
|
out.results[0].module_stdout.startswith('/bin/sh: ') and
|
|
out.results[0].module_stdout.endswith('/custom_binary_single_null: cannot execute binary file\r\n')
|
|
|
|
|
|
# Can't test this: Mitogen returns 126, 2.5.x returns 126, 2.4.x discarded the
|
|
# return value and always returned 0.
|
|
# out.results[0].rc == 126
|