On Thu, Oct 18, 2018 at 11:56 AM Kai Stian Olstad <
[email protected]> wrote:

> On Thursday, 18 October 2018 17.47.02 CEST Leam Hall wrote:
> > Yes, with the note that I actually fixed the handler names to match.
> >
> > # tasks/main.yml
> >
> > - include: install_httpd.yml
> >
> > - include: cat1.yml
> >   when: apache_cat1 | bool
> >   notify: restart_httpd
>
> include has only ok and failed status and not changed.
> It's the changed that trigger a notify, so you need to have the notify on
> the install task instead.
>

Kai, thanks! I made the restart a playbook of it's own since everything
else could be optioned out at some point in time.

Leam

-- 
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/CACv9p5q6h6Gc8qavEETCUm-HFF%3DXU9Q1gg4C%2BRVM%3DZOMXP9%3D2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to