Return failed instead of raising an error when an include_vars file is missing

Fixes #18508

(cherry picked from commit 937d872f4b)
This commit is contained in:
James Cammarata 2016-11-18 09:28:13 -06:00
parent 47d5f0f0a8
commit 159399fea4

View file

@ -137,8 +137,8 @@ class ActionModule(ActionBase):
results.update(updated_results)
except AnsibleError as e:
failed = True
err_msg = to_native(e)
raise AnsibleError(err_msg)
if self.return_results_as_name:
scope = dict()