mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Merge pull request #620 from pas256/patch-1
Conditional Imports should only import the first vars_file found in list
This commit is contained in:
commit
b38f8bfa80
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue