diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 0fa459058d..3e5ad39253 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -232,7 +232,7 @@ class Play(object): self.vars.update(data) elif host is not None: self.playbook.callbacks.on_not_import_for_host(host, filename4) - if found + if found: break if not found: raise errors.AnsibleError(