Disable Handlers?

Any one know a good way to disable all handlers in a role w/o putting conditionals on each of the handlers/tasks?

I know only using «when» to disable the handlers.

Yeah was hoping for something not as intrusive.

Not exactly clean, but you could modify all handlers to have a tag: handler . … and then run ansible with --skip-tags=handler

Mark

Ignore that one… seems that doesn’t work

$ ansible-playbook -i hosts.localhost handlertest.yml -l localhost --skip-tags=handler

PLAY ***************************************************************************

TASK [Create a file] ***********************************************************
changed: [localhost]

RUNNING HANDLER [notifytest] ***************************************************
ok: [localhost] => {
“msg”: “Handler being run”
}

PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0