summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/lookup_together
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/lookup_together')
-rw-r--r--test/integration/targets/lookup_together/aliases3
-rw-r--r--test/integration/targets/lookup_together/tasks/main.yml14
2 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/lookup_together/aliases b/test/integration/targets/lookup_together/aliases
new file mode 100644
index 00000000..bc987654
--- /dev/null
+++ b/test/integration/targets/lookup_together/aliases
@@ -0,0 +1,3 @@
+shippable/posix/group2
+skip/aix
+skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
diff --git a/test/integration/targets/lookup_together/tasks/main.yml b/test/integration/targets/lookup_together/tasks/main.yml
new file mode 100644
index 00000000..ee59a2ae
--- /dev/null
+++ b/test/integration/targets/lookup_together/tasks/main.yml
@@ -0,0 +1,14 @@
+- name: test with_together
+ #shell: echo {{ item }}
+ set_fact: "{{ item.0 }}={{ item.1 }}"
+ with_together:
+ - [ 'a', 'b', 'c', 'd' ]
+ - [ '1', '2', '3', '4' ]
+
+- name: verify with_together results
+ assert:
+ that:
+ - "a == '1'"
+ - "b == '2'"
+ - "c == '3'"
+ - "d == '4'"