File: custom_binary_producing_json.yml

package info (click to toggle)
python-mitogen 0.3.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,684 kB
  • sloc: python: 24,274; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (29 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- name: integration/runner/custom_binary_producing_json.yml
  hosts: test-targets
  gather_facts: true
  tasks:
    - 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"

    - 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"

    - assert:
        that: |
          out.changed and
          out.results[0].changed and
          out.results[0].msg == 'Hello, world.'
        fail_msg: |
          out={{ out }}
  tags:
    - custom_binary_producing_json