ansible/ansible — pull request #9358 by pescobar (2014-10-16 19:22:02+00:00)
Title: Print tasks grouped by role when doing --list-tasks

When one playbook include different roles and option --list-tasks is used the different tasks are printed grouped by the role they belong to.

this is the output when doing "ansible-playbook --list-tasks"
```
$> ansible-playbook web-balancers.yml --list-tasks

playbook: web-balancers.yml

play #1 (Configure web balancers):
role: common
install resolv.conf file {{ rolename }}
install every yum repos keys
disable selinux
Install ntp
Copy ntp conf file
Start the ntp service
Install postfix
Copy postfix conf file
Start the postfix service
Install vim
Copy .vimrc for root
Copy .vim dir for root
Install check_mk monitoring agent
Copy config file for check_mk monitoring agent
Install munin-node package
Copy munin-node config file
disable unwanted services
role: apache
Open required IPTables ports
Check if apache SSL cert already exists
Create self-signed SSL cert for Apache (valid for 10 years)
Enable the new SSL cert in Apache conf (line 1)
Enable the new SSL cert in Apache conf (line 2)
```

Maybe it needs some more testing but it seems to work for me