From d9427db14b4e285c3208ea91460798ef2701ae0f Mon Sep 17 00:00:00 2001 From: John Kleint <jkleint@gmail.com> Date: Thu, 10 May 2012 15:37:30 -0400 Subject: [PATCH] Support single handlers for notify. --- lib/ansible/playbook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index b2c1ec9f626..fdd992caebb 100644 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -364,6 +364,8 @@ class PlayBook(object): # we would only trigger restarting Apache on half of the nodes subtasks = task.get('notify', []) + if isinstance(subtasks, basestring): + subtasks = [subtasks] if len(subtasks) > 0: for host, results in results.get('contacted',{}).iteritems(): if results.get('changed', False):