summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authordevon-mar <devon-mar@users.noreply.github.com>2023-02-20 20:45:03 +0100
committerGitHub <noreply@github.com>2023-02-20 20:45:03 +0100
commit2f8f7fba4c6b17c25bf20913bfd332ea06b8e8ae (patch)
tree8df93c82cc298d7dc7697298f389bfa081fb9d18 /test
parentAdd Steampunk Spotter to Other tools list (#80006) (diff)
downloadansible-2f8f7fba4c6b17c25bf20913bfd332ea06b8e8ae.tar.xz
ansible-2f8f7fba4c6b17c25bf20913bfd332ea06b8e8ae.zip
Update lookup to use positional only arg for name to avoid conflicts (#79839)
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/lookup-option-name/aliases2
-rw-r--r--test/integration/targets/lookup-option-name/tasks/main.yml6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/targets/lookup-option-name/aliases b/test/integration/targets/lookup-option-name/aliases
new file mode 100644
index 0000000000..498fedd558
--- /dev/null
+++ b/test/integration/targets/lookup-option-name/aliases
@@ -0,0 +1,2 @@
+shippable/posix/group4
+context/controller
diff --git a/test/integration/targets/lookup-option-name/tasks/main.yml b/test/integration/targets/lookup-option-name/tasks/main.yml
new file mode 100644
index 0000000000..4f248c84b3
--- /dev/null
+++ b/test/integration/targets/lookup-option-name/tasks/main.yml
@@ -0,0 +1,6 @@
+---
+- debug:
+ msg: "{{ lookup('vars', name='test') }}"
+
+- debug:
+ msg: "{{ query('vars', name='test') }}"