Hi Thomas, You have something called *delgate_to* to do this.
- shell: echo hello delegate_to: abc.server.com So basically if your playbook is running on a particular host (or set of hosts), above task will run on abc.server.com. Regards, Vikas On Wednesday, 21 October 2015 23:36:10 UTC+11, Thomas Steinbach wrote: > > Is it possible to delegate a role/task to a remote hosts remote host? An > example: > > On a remote host (e.g. testserver) I have created a docker container. The > containers IP is known on the testserver and he is accessible just from the > testservers private docker network. Now I want to execute a role inside the > testservers docker container. But without making the docker container > public accessible. So I want to delegate the role execution via the remote > testserver to the remote docker container. > > Is this possible with Ansible? And if not, would that be a good feature? > > Greetings - Thomas > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c80e2486-52ca-4f07-a946-19dc8e22888c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
