From 34c002c771ae3935742d5335c11f67b53bc6e325 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 29 Mar 2018 16:28:08 -0400 Subject: [PATCH] give hint to users when a file is not found --- lib/ansible/errors/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index cbdd1db2c6b..df9576fbc72 100644 --- a/lib/ansible/errors/__init__.py +++ b/lib/ansible/errors/__init__.py @@ -248,6 +248,8 @@ class AnsibleFileNotFound(AnsibleRuntimeError): message += "\n" message += "Searched in:\n\t%s" % searched + message += " on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option" + super(AnsibleFileNotFound, self).__init__(message=message, obj=obj, show_content=show_content, suppress_extended_error=suppress_extended_error, orig_exc=orig_exc)