diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 1edb90f63ca..bb1e5382efd 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -275,7 +275,7 @@ class Play(object): self.playbook.callbacks.on_not_import_for_host(host, filename4) if found: break - if not found: + if not found and host is not None: raise errors.AnsibleError( "%s: FATAL, no files matched for vars_files import sequence: %s" % (host, sequence) )