On 12.02.17 18:47 Michael Ströder wrote: > But then a role has to know the handler names in the other role > which somewhats contradicts the concept of modular design.
AFAIK the role design is built so you could reuse roles in more than one place. E.g. create a role that just installs nginx, and is set as a dependency for the roles creating a webserver with nginx, a load balancer with nginx, etc. This way you would have to put together the installation steps in only one role, not in multiple roles. The solution to your notify dilemma maybe a delegate_to in the handler. Or duplicating the handler in your role. Maybe we could help better if we knew what problem you are solving, or what applications need your to call your handler in another role... 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/7fda1471-c0e5-9ef9-daf2-b46f3d772b49%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
