2018-05-04 17:17:31 +00:00
|
|
|
- name: integration/runner/custom_binary_producing_json.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-09-11 05:40:56 +00:00
|
|
|
gather_facts: true
|
2018-04-02 07:05:37 +00:00
|
|
|
tasks:
|
2018-09-11 05:40:56 +00:00
|
|
|
- block:
|
|
|
|
- custom_binary_producing_json_Darwin:
|
|
|
|
foo: true
|
|
|
|
with_sequence: start=1 end={{end|default(1)}}
|
|
|
|
register: out_darwin
|
|
|
|
- set_fact: out={{out_darwin}}
|
|
|
|
when: ansible_system == "Darwin"
|
2018-04-04 19:01:23 +00:00
|
|
|
|
2018-09-11 05:40:56 +00:00
|
|
|
- block:
|
|
|
|
- custom_binary_producing_json_Linux:
|
|
|
|
foo: true
|
|
|
|
with_sequence: start=1 end={{end|default(1)}}
|
|
|
|
register: out_linux
|
|
|
|
- set_fact: out={{out_linux}}
|
|
|
|
when: ansible_system == "Linux"
|
|
|
|
|
2018-04-04 19:01:23 +00:00
|
|
|
- assert:
|
|
|
|
that: |
|
|
|
|
out.changed and
|
|
|
|
out.results[0].changed and
|
|
|
|
out.results[0].msg == 'Hello, world.'
|