summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/lookup_lines/tasks
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2020-02-12 03:00:01 +0100
committerGitHub <noreply@github.com>2020-02-12 03:00:01 +0100
commit9788daf13b62853f04e8bc2aa3ca2b778eb186e6 (patch)
treee70f90f7d3943a1311b6fbd4a0cbd6df989bfec5 /test/integration/targets/lookup_lines/tasks
parentRename kubevirt inventory plugin test. (#67326) (diff)
downloadansible-9788daf13b62853f04e8bc2aa3ca2b778eb186e6.tar.xz
ansible-9788daf13b62853f04e8bc2aa3ca2b778eb186e6.zip
Split up more lookup integration tests. (#67328)
Diffstat (limited to 'test/integration/targets/lookup_lines/tasks')
-rw-r--r--test/integration/targets/lookup_lines/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/lookup_lines/tasks/main.yml b/test/integration/targets/lookup_lines/tasks/main.yml
new file mode 100644
index 0000000000..f864d72098
--- /dev/null
+++ b/test/integration/targets/lookup_lines/tasks/main.yml
@@ -0,0 +1,13 @@
+- name: test with_lines
+ #shell: echo "{{ item }}"
+ set_fact: "{{ item }}=set"
+ with_lines: for i in $(seq 1 5); do echo "l$i" ; done;
+
+- name: verify with_lines results
+ assert:
+ that:
+ - "l1 == 'set'"
+ - "l2 == 'set'"
+ - "l3 == 'set'"
+ - "l4 == 'set'"
+ - "l5 == 'set'"