mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
parent
4c20d16549
commit
54e9096950
3 changed files with 18 additions and 0 deletions
1
test/integration/targets/debug/aliases
Normal file
1
test/integration/targets/debug/aliases
Normal file
|
@ -0,0 +1 @@
|
||||||
|
posix/ci/group1
|
6
test/integration/targets/debug/main.yml
Normal file
6
test/integration/targets/debug/main.yml
Normal file
|
@ -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]
|
11
test/integration/targets/debug/runme.sh
Executable file
11
test/integration/targets/debug/runme.sh
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue