Conditional notify based upon tag used

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