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