On Thu, Oct 18, 2018 at 11:37 AM Kai Stian Olstad < [email protected]> wrote:
> On Thursday, 18 October 2018 16.01.55 CEST Leam Hall wrote: > > In the ansible output it says: > > > > META: ran handlers > > This indicates that it run all the handler that was notified so that mean > not necessarily all the handlers. > > Ah, good to know! There are 4 places where the handler is called, which was another question. > > For this role handlers/main.yml is: > > > > - name: restart_and_enable_httpd > > service: > > name: httpd > > state: restarted > > enabled: true > > > > > > This is Ansible 2.6 on RHEL 6. httpd is installed earlier in the process > but at the end it is not running nor is it turned on per checkconfig. > > Did you add a notify on this install task? > 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: cat2.yml when: apache_cat2 | bool notify: restart_httpd - include: cat3.yml when: apache_cat3 | bool notify: restart_httpd Full code: https://github.com/LeamHall/Ansible_Apache_STIG -- 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/CACv9p5r_BvEAGun4i24cfFXBCPh8QvMQ6h-tK00Eg6dSjvyWrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
