Holla!
I have an action plugin that will run some modules on the target host per self._execute_module(…)
Now I want one single module to be delegated to a different host.* The name of this host is a parameter of my custom module.
I have seen inside the synchonize action plugin that you can delegate a module to a different host. In synchronize it is delegating to localhost and I can reproduce this in my plugin. But I am failing to delegate the module to a 3rd host. I was puzzling around with all the options of the task_vars which gets passed to self._execute_module, created a new connection through the connection_loader and what not, but the module still is executed on the original target host.
Is this possible? Can someone point me to in the right direction?
Thanks,
Daniel
*Yes, it does make perfectly sense, because this is about managing a vm-host and its guests.