1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Conditional Imports should only import the first file in the list, not all of them. This change stops looping through the vars_files list as soon as a file is found.

This commit is contained in:
Peter Sankauskas 2012-07-18 15:31:04 -07:00
parent 4e74ab4856
commit 413fb15e0a

View file

@ -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)