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.
22 lines
570 B
YAML
22 lines
570 B
YAML
|
|
- 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
|