mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow conditionals on BYPASS_HOST_LOOP plugins like add_host
This commit is contained in:
parent
cd0dd2a6ad
commit
7044e53e07
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ class Runner(object):
|
||||||
handler = utils.plugins.action_loader.get('async', self)
|
handler = utils.plugins.action_loader.get('async', self)
|
||||||
|
|
||||||
conditional = utils.template(self.basedir, self.conditional, inject, expand_lists=False)
|
conditional = utils.template(self.basedir, self.conditional, inject, expand_lists=False)
|
||||||
if not getattr(handler, 'BYPASS_HOST_LOOP', False) and not utils.check_conditional(conditional):
|
if not utils.check_conditional(conditional):
|
||||||
result = utils.jsonify(dict(skipped=True))
|
result = utils.jsonify(dict(skipped=True))
|
||||||
self.callbacks.on_skipped(host, inject.get('item',None))
|
self.callbacks.on_skipped(host, inject.get('item',None))
|
||||||
return ReturnData(host=host, result=result)
|
return ReturnData(host=host, result=result)
|
||||||
|
|
Loading…
Reference in a new issue