diff --git a/lib/ansible/plugins/lookup/first_found.py b/lib/ansible/plugins/lookup/first_found.py index 915363180d..8145c72b02 100644 --- a/lib/ansible/plugins/lookup/first_found.py +++ b/lib/ansible/plugins/lookup/first_found.py @@ -171,7 +171,7 @@ class LookupModule(LookupBase): else: total_search.append(term) else: - total_search = terms + total_search = self._flatten(terms) roledir = variables.get('roledir') for fn in total_search: