# Conditional notify based upon tag used

**URL:** <https://forum.ansible.com/t/conditional-notify-based-upon-tag-used/17925>\
**Category:** Ansible Project\
**Created:** [April 8, 2015, 9:47am UTC](https://forum.ansible.com/t/conditional-notify-based-upon-tag-used/17925 "2015-04-08T09:47:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarris\_Overbosch](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Sarris\_Overbosch](https://forum.ansible.com/u/Sarris_Overbosch)\
**Post date:** [April 8, 2015, 9:47am UTC](https://forum.ansible.com/t/conditional-notify-based-upon-tag-used/17925/1 "2015-04-08T09:47:15Z")

</div>

Hi,

I was wondering if it is possible to not fire a notification if I use a certain tag when running a play.

some.yml  
…  
changed\_when: tag != “templatetest”  
notify: tomcat\_restart  
…

> ansible-playbook some.yml --tags “templatetest”

Or maybe there is a better/other way in achieving this, I’m just interested in running the playbook to generate the templates and control them without altering the systems?

Br,

Sarris
