I have two questions about action_plugins:
1. I wrote a custom ansible module that by default has async support. I
wrote an action plugin for it like below. Now I get error - async mode is
not supported for this module. Anything else I should be doing to support
this?
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
print("Hi from action plugin")
result = super(ActionModule, self).run(tmp, task_vars)
killFlag = os.getenv('OZONE_KILL_FLAG')
print("Kill Flag = %s" % killFlag)
if killFlag == "KILL_JOB":
result['skipped'] = True
result['msg'] = 'Skipped from action plugin due to Stop Request'
else:
result.update(self._execute_module())
# pydevd.settrace('10.252.5.56', port=53483, stdoutToServer=True,
stderrToServer=True)
print("Bye from action plugin")
return result
2. Can we have a global action plugin or something similar to check a
variable and skip all remaining tasks in the Ansible execution?
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.