Conditional notify based upon tag used

14 views
Skip to first unread message

Sarris Overbosch

unread,
Apr 8, 2015, 8:55:03 AM4/8/15
to ansible...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages