Thanks Matt, I'll post it there: https://groups.google.com/forum/#!topic/ansible-devel/IlGquUwKmP0
On Friday, February 20, 2015 at 12:56:50 PM UTC-5, Matt Martz wrote: > > Probably a better topic for ansible-devel > > On Fri, Feb 20, 2015 at 11:54 AM, Leonel Galan Recinos <[email protected] > <javascript:>> wrote: > >> I've been learning Ansible in the last couple of months and when using >> roles from Ansible Galaxy, it's hard to know which tags each tasks has. >> I've search and couldn't find a way to show all tags a task has, when >> listing all tasks (--list-tasks). I can build from source and do a small >> change on >> https://github.com/ansible/ansible/blob/v1.8.4/bin/ansible-playbook#L251 >> from: >> print ' %s' % task.name >> >> to: >> print ' %s - %s' % ( >> task.name, >> stringc(', '.join(task.tags), 'blue') >> ) >> >> And it works great: >> Update caches - all >> Create general configuration file for APT - all >> Install apt packages - all >> Install packages - all >> Update parameters - all >> Creating groups - all, configuration, groups, users >> Per-user group creation - all, configuration, users >> ... >> >> Except: >> >> - I don't know what's the base interface for adding this: Modify >> existing --list-tasks, add a second flag: --list-tasks-with-tags, or ... >> - I wanted to get a feel if this would be considered useful by others. >> >> Thanks for taking the time to read my post, I'm willing to submit a PR >> with your suggestions. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/1e2cc096-3a95-424e-a799-77b07c979c78%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/1e2cc096-3a95-424e-a799-77b07c979c78%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Matt Martz > @sivel > sivel.net > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fdea30c3-711c-4a8c-8d19-a45120d1a55a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
