On 5 August 2015 at 12:22, Stri}{ <[email protected]> wrote:
> Hi,
> How to set a variable inside role A and use it inside role B ? Role B is
> listed in dependencies sections in meta/main.yml of role A and I see its
> output then call role A.

If role A depends on B, then  B will get handled first, _then_ A.

Any vars you set in B are visible in A, but not the other way round
(since B happens 'before' A and you haven't had a chance to set those vars).

-- 
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/CAK5eLPRipDq%3DcQhU4t4QBVhnv_YvuJgUVfywG%3D0Q8KsLHPuPqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to