File: builtin_command_module.yml

package info (click to toggle)
python-mitogen 0.3.3-9%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,816 kB
  • sloc: python: 22,086; sh: 171; makefile: 74; perl: 19; ansic: 18; javascript: 5
file content (21 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

- name: integration/runner/builtin_command_module.yml
  hosts: test-targets
  any_errors_fatal: true
  gather_facts: true
  tasks:
    - 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