Hi, I've posted a similar message earlier: https://groups.google.com/forum/#!topic/ansible-project/8FqZwqqyyeU But haven't got any replies to it. And here is a bit earlier ticket with Michael's answer: https://github.com/ansible/ansible/issues/5634
If you find the way to solve your issue please let us know here, as I'm interested in that too. Thanks, Timur понедельник, 7 апреля 2014 г., 1:31:07 UTC+4 пользователь Jacob Weber написал: > > Is there a way to have multiple plays call a "notify" handler, but have > the handler run only once, at the end of all plays? > > For example, say I have site.yml: > - include webservers.yml > - include database.yml > > And in both webservers.yml and database.yml, I have a role that calls: > notify: update load balancer > > If I put an "update load balancer" handler in some common role included by > both webservers.yml and database.yml, it gets called at the end of each of > those two plays. I only want it to happen once, at the end of both plays. > > And if I put the handler inside site.yml, it can't be found by the > included plays. > > Thanks. > -- 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/8fe99d64-6b7d-44fd-9dd9-e78d8670c5f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
