summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/lookup_first_found
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2022-03-02 22:16:47 +0100
committerGitHub <noreply@github.com>2022-03-02 22:16:47 +0100
commit74a204e6f144f3eabd6384bbb665b6afd69117c3 (patch)
treefbbf270ad2aae8171791e8946b8e22e3bc7a977b /test/integration/targets/lookup_first_found
parentmodule_utils - Fix type hinting issues. (diff)
downloadansible-74a204e6f144f3eabd6384bbb665b6afd69117c3.tar.xz
ansible-74a204e6f144f3eabd6384bbb665b6afd69117c3.zip
first_found: allow spaces in names (#77141)
* first_found: allow spaces in names Fixes #77136
Diffstat (limited to 'test/integration/targets/lookup_first_found')
-rw-r--r--test/integration/targets/lookup_first_found/files/vars file spaces.yml1
-rw-r--r--test/integration/targets/lookup_first_found/tasks/main.yml10
2 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/lookup_first_found/files/vars file spaces.yml b/test/integration/targets/lookup_first_found/files/vars file spaces.yml
new file mode 100644
index 0000000000..790bc26c9d
--- /dev/null
+++ b/test/integration/targets/lookup_first_found/files/vars file spaces.yml
@@ -0,0 +1 @@
+foo: 1
diff --git a/test/integration/targets/lookup_first_found/tasks/main.yml b/test/integration/targets/lookup_first_found/tasks/main.yml
index e85f4f27ad..9aeaf1d1ed 100644
--- a/test/integration/targets/lookup_first_found/tasks/main.yml
+++ b/test/integration/targets/lookup_first_found/tasks/main.yml
@@ -84,3 +84,13 @@
assert:
that:
- "hatethisformat == '/etc/hosts'"
+
+- name: test spaces in names
+ include_vars: "{{ item }}"
+ with_first_found:
+ - files:
+ - "{{ role_path + '/files/vars file spaces.yml' }}"
+
+- assert:
+ that:
+ - foo is defined