From e72fdccd87a0b1ed5e2e053c743951f9062178c7 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sun, 28 Oct 2012 16:35:22 +0100 Subject: [PATCH] Allow vars_files sequences without a default --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )