"My instinct is that there should be a feature for making handlers from all roles globally available"
Yep, this isn't needed as handlers are already globally accessible by name. You can, for instance, define "restart apache" in roles/common/handlers/main.yml and reference it from other roles later on. On Mon, Mar 10, 2014 at 12:28 PM, Nick Groenen <[email protected]> wrote: > On Sun, Mar 9, 2014 at 4:08 PM, Hagai Kariti <[email protected]> wrote: > > Is there a simpler solution that currently works, though? > > You can include handlers from another file, the same way you can > include tasks. In your-role/handers/main.yml, you might for example > have: > > - include: ../../some-other-role/handlers/main.yml > > -- > Nick Groenen | zoni | @NickGroenen > https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 > > -- > 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/CAGV0WwOWeXD2VoBO9VX4ssm8eTE9MYJckzf2Aw64ob43yLU5pg%40mail.gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEVJ8QPLYTD1AAB9y8sM39rF5bU4rLfW3xbhGaBTR6RywxNnuQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
