Hey guys
I would like to ask whether it's possible to SKIP task programmatically,
using python & callback module?
I've been trying to do this for 3 days and I still don't know how.
Is there some special variable which I could use in *v2_runner_on_start *or
*v2_playbook_on_task_start* methods?
I don't want to use ansible's when condition, task should be omitted
dynamically basing on the results gathered earlier.
e.g.:
def v2_runner_on_start(self, host, task):
if self.checksomething():
print("Task should be omitted")
<OMIT TASK, DO NOT RUN IT>
else:
print("Yes, task should be executed, proceed")
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/34e2ed5a-2fad-40cf-a852-f94af07fd096n%40googlegroups.com.