diff --git a/bin/ansible-playbook b/bin/ansible-playbook index 27d920a81e..96e87de3eb 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -247,7 +247,8 @@ def main(args): if getattr(task, 'name', None) is not None: # meta tasks have no names print ' %s' % task.name - print '' + if options.listhosts or options.listtasks: + print '' continue if options.syntax: