It would be better to just implement --list-tags, though this code should not be in bin/ansible-playbook as we also have a note to move the --list-tags code out sometime and make it use more of the core implementation.
On Fri, Dec 20, 2013 at 9:31 AM, Michael DeHaan <[email protected]>wrote: > yeah, leave off the sed part on the end and just read it :) > > > > > > On Fri, Dec 20, 2013 at 6:36 AM, <[email protected]> wrote: > >> Hi, >> >> is there a better way to list available tags than this: >> >> #!/bin/zsh >> >> ansible-playbook ${1-site.yml} --tags="does_not_exist" | sed >> 's/.*possible values: //;s/,/\n/g' | column -c 120 >> >> I had a look at the python api, especially the ansible.playbook module. >> As it turns out doing this via the api is not trivial without replicating >> code (like getting all plays in the playbook and run compare_tags for each). >> >> Any hints? >> >> >> Sebastian >> >> -- >> 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]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Michael DeHaan <[email protected]> > CTO, AnsibleWorks, Inc. > http://www.ansibleworks.com/ > > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
