--tags doesn't work with meta: flush_handlers

64 views
Skip to first unread message

Mark

unread,
Apr 24, 2015, 6:36:32 PM4/24/15
to ansible...@googlegroups.com
Setup:

--- myrole/main.yml ---

  - include: somefile.yml
    tags: configure

----somefile.yml---

  - some command
    notify:  handlerx
  
  - meta: flush_handlers

--- myrole/handlers/main.yml ----
  - handlerx:  <do something>
    tags: configure



Result:

  - handlerx is not fired with the flush_handlers meta command.    The playbook is failing, so I can't tell if the handlers get flushed at the end of it or not..

 This used to work pre 1.9, in the 1.8.x build.


Anyone else see this behavior?  Suggestions?   

Mark

unread,
Apr 24, 2015, 6:37:05 PM4/24/15
to ansible...@googlegroups.com
Also tried adding always tags to the handers, No change there.

Matt Martz

unread,
Apr 24, 2015, 7:21:39 PM4/24/15
to ansible...@googlegroups.com
You might want to check out:  https://github.com/ansible/ansible/issues/10758

This issue was just fixed recently in devel.

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/de059548-b5ea-45ff-88a4-6cd558d27603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages