On 30.05.16 14:03 ProfHase wrote:
> Thanks Johannes,
> the problem about it is: There is no way to pass the role path of the 
> ``webapp1-role`` to the ``nginx`` role ( I'd rather not hardcode it, so 
> that I could use nginx as dependence for multiple roles)

You can't? At least it does for me:

dependencies:
  - { role: foobar, my_variable: whatever }

That way you can include a fail task in your nginx role (to fail when
the variable is not set) and use the variable as path to the file.
Untested...

Johannes

-- 
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/574C3432.5050306%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to