Any pointers on writing data to a task variable from within a plugin? I've looked at the host_group_vars plugin (which just returns a dictionary) and at the templar (set_available_variables). I can get the current variables and "write" to them but the variable I set doesn't seem to be persisted. Most likely I'm getting a copy of the actual vars.
Background: I'm working on a solution to do phased deployment over sequentialruns. E.g. target group A on this run, then group B on the subsequent run. This consists of a lookup plugin (which determines which group to target) and a strategy plugin (which captures/manages the state of one run to the next). All I need at the moment is to persist the group selected by the lookup plugin so that it can be found by the strategy plugin. I could write this to a file on disk or a static variable etc, but writing to a var seemed like the cleanest approach. -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5e2cbfaf-e4c4-48f8-a20f-2b484e51e202%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.