From 74a204e6f144f3eabd6384bbb665b6afd69117c3 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Wed, 2 Mar 2022 22:16:47 +0100 Subject: first_found: allow spaces in names (#77141) * first_found: allow spaces in names Fixes #77136 --- .../targets/lookup_first_found/files/vars file spaces.yml | 1 + test/integration/targets/lookup_first_found/tasks/main.yml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 test/integration/targets/lookup_first_found/files/vars file spaces.yml (limited to 'test/integration/targets/lookup_first_found') 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 -- cgit v1.2.3