2018-04-18 14:43:54 +00:00
|
|
|
|
|
|
|
- name: integration/runner__builtin_command_module.yml
|
2018-04-22 18:40:58 +00:00
|
|
|
hosts: test-targets
|
2018-04-04 23:11:29 +00:00
|
|
|
any_errors_fatal: true
|
2018-04-04 19:01:23 +00:00
|
|
|
gather_facts: true
|
2018-02-25 19:04:10 +00:00
|
|
|
tasks:
|
2018-04-18 14:43:54 +00:00
|
|
|
- command: hostname
|
2018-04-04 19:01:23 +00:00
|
|
|
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)
|