Hi
That didn't work, but you put me on the right path -- it needed to be
meta: flush_handlers
(note underscore instead of dash)

Thanks, appreciate the help,
Toby

On Tue, 2 Jun 2015 at 23:52 Brian Coca <[email protected]> wrote:

> last task in each role:
>
> meta: flush-handlers
>
> On Tue, Jun 2, 2015 at 4:28 AM, Toby Wintermute <[email protected]> wrote:
> > Hi,
> > I must be doing something wrong, but I don't understand what.
> > I want notified handlers to run between one role and the next. From
> reading
> > other posts here, it seems that is how it is supposed to work, but it's
> not
> > what I'm seeing.
> >
> > A simplified version of my playbook layout is like this:
> >
> >
> > playbook.yml - this contains one role, Wholemeal.
> >
> > Wholemeal/meta/main.yml -- this contains one role as a dependency,
> > Sourdough.
> > Wholemeal/tasks/main.yml -- this contains some stuff that won't work
> until
> > the Sourdough handler, below, has restarted something.
> >
> > Sourdough/tasks/main.yml -- installs a configuration, notifies a service
> to
> > restart.
> > Sourdough/handlers/main.yml -- has the notify handler to restart the
> service
> >
> >
> > When I run ansible-playbook playbook.yml, I see it run the Sourdough
> tasks
> > first, then immediately the Wholemeal tasks, and only after them does it
> run
> > the Sourdough-notified handler :(
> >
> >
> > Is there a way to get this handler to run between the two roles?
> > Keeping in mind that I only want to run it if the config file was
> changed,
> > not *every* time...
> >
> >
>

-- 
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/CABEgq96nCjGwRsb_2m4vawQOVJiDODr9VQBV5qA31uHBQ2BmnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to