mirror of https://github.com/ansible/ansible.git
parent
4c20d16549
commit
54e9096950
@ -0,0 +1 @@
|
||||
posix/ci/group1
|
@ -0,0 +1,6 @@
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: test item being present in the output
|
||||
debug: var=item
|
||||
loop: [1, 2, 3]
|
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
trap 'rm -f out' EXIT
|
||||
|
||||
ansible-playbook main.yml -i ../../inventory | tee out
|
||||
for i in 1 2 3; do
|
||||
grep "ok: \[localhost\] => (item=$i)" out
|
||||
grep "\"item\": $i" out
|
||||
done
|
Loading…
Reference in New Issue