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



On Fri, Jun 10, 2016 at 4:15 PM, Mark Janssen <[email protected]> wrote:

> Not exactly clean, but you could modify all handlers to have a tag:
> handler . .... and then run ansible with --skip-tags=handler
>
> Mark
>
> On Thu, Jun 9, 2016 at 8:29 AM, <[email protected]> wrote:
>
>> Yeah was hoping for something not as intrusive.
>>
>> On Wednesday, June 8, 2016 at 10:30:16 PM UTC-7, Alexey Vazhnov wrote:
>>>
>>> I know only using «when» to disable the handlers.
>>>
>>> On Tuesday, June 7, 2016 at 6:26:08 AM UTC+5, [email protected] wrote:
>>>>
>>>> Any one know a good way to disable all handlers in a role w/o putting
>>>> conditionals on each of the handlers/tasks?
>>>>
>>> --
>> 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/f6cbc0f5-65d0-4964-a2a7-947ad2e8baa1%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/f6cbc0f5-65d0-4964-a2a7-947ad2e8baa1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Mark Janssen  --  maniac(at)maniac.nl
> Unix / Linux Open-Source and Internet Consultant
> Maniac.nl Sig-IO.nl Vps.Stoned-IT.com
>
>


-- 
Mark Janssen  --  maniac(at)maniac.nl
Unix / Linux Open-Source and Internet Consultant
Maniac.nl Sig-IO.nl Vps.Stoned-IT.com

-- 
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/CAKs9msiUc2-udb8W%3Du%2BNF0tz0%3DXsd8RAoHfQt-tF3gcjGEYuwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to