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.
20 lines
533 B
YAML
20 lines
533 B
YAML
|
|
- 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}}
|