File: builtin_command_module.yml

package info (click to toggle)
python-mitogen 0.3.26-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,456 kB
  • sloc: python: 22,134; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (22 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

- name: integration/runner/builtin_command_module.yml
  hosts: test-targets
  gather_facts: true
  tasks:
    - name: Run hostname
      command: hostname
      with_sequence: start=1 end={{end|default(1)}}
      register: out

    - assert:
        that: |
          out.changed and
          out.results[0].changed and
          out.results[0].cmd == ['hostname'] and
          out.results[0].item == '1' and
          out.results[0].rc == 0 and
          (out.results[0].stdout == ansible_nodename)
        fail_msg: |
          out={{ out }}
  tags:
    - builtin_command_module