Support single handlers for notify.

pull/356/head
John Kleint 13 years ago
parent 174e4c1340
commit 03b887a53d

@ -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):

Loading…
Cancel
Save