mitogen/tests/ansible/integration/runner/builtin_command_module.yml

18 lines
498 B
YAML
Raw Normal View History

2018-02-14 16:33:11 +00:00
- hosts: all
any_errors_fatal: true
gather_facts: true
2018-02-25 19:04:10 +00:00
tasks:
- name: integration/runner__builtin_command_module.yml
2018-02-25 19:04:10 +00:00
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)