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.
18 lines
498 B
YAML
18 lines
498 B
YAML
- hosts: all
|
|
any_errors_fatal: true
|
|
gather_facts: true
|
|
tasks:
|
|
- name: integration/runner__builtin_command_module.yml
|
|
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)
|