On Tue, 31 Mar 2015 05:17 -0700, Adrian Paraschiv <[email protected]> wrote: > Hello all, > > I have a playbook that runs different roles on different hosts. > Is it possible to pass a variable from one role running on one host to > another role on another host running within the same playbook run? Or any > workaround ? > > playbook > host1 > role1 > here I get some variables: var1 var2 ...etc > host2 > role2 > here I need to use var1 var2 ... etc.
Looks like you're in need of some magic. http://docs.ansible.com/playbooks_variables.html#magic-variables-and-how-to-access-information-about-other-hosts Giovanni -- 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/1427806727.615244.247529101.072E5574%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.
