Execute handler only if another was not notified

11 views
Skip to first unread message

Nikolay Artamonov

unread,
Mar 17, 2015, 8:42:40 AM3/17/15
to ansible...@googlegroups.com
Hi guys!

Let's assume that we have simple playbook:

---
- hosts: server.com
  tasks
:
   
- name: Some task
   
- ...
   
- notify A
   
- name: Some another task
   
- ...
   
- notify B
   
- name: Some another another task
   
- ...
   
- notify B
  handlers
:
   
- name: A
   
- ...
   
- name B
   
- ...


How can I ensure that handler B will be executed only when A is *not* planned?

Thanks!

-- 
Truly yourth,
Artamonov Nikolay

Reply all
Reply to author
Forward
0 new messages