diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index d10a731faaf..c984546621e 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -133,6 +133,8 @@ class Inventory(object): if not self.parser: # should never happen, but JIC raise AnsibleError("Unable to parse %s as an inventory source" % host_list) + else: + display.warning("Host file not found: %s" % to_unicode(host_list)) self._vars_plugins = [ x for x in vars_loader.all(self) ]