diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 0a56e4b8f6..0fa459058d 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -232,6 +232,8 @@ class Play(object): self.vars.update(data) elif host is not None: self.playbook.callbacks.on_not_import_for_host(host, filename4) + if found + break if not found: raise errors.AnsibleError( "%s: FATAL, no files matched for vars_files import sequence: %s" % (host, sequence)