-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal ansible-playbook --list-tags
parser
#438
Comments
Hi there! I'm not an expert in Ansible, but I thought you could get JSON output via the JSON callback for STDOUT? Something like:
|
Yeah that does not seem to be working for
Additionally I've tried the following settings in [defaults]
callbacks_enabled = json
stdout_callback = json and the fully qualified variant as well: [defaults]
callbacks_enabled = ansible.posix.json
stdout_callback = ansible.posix.json Sadly none of that returns JSON output for |
Gotcha. Could you open an issue with the Community.General project to get this supported? https://github.com/ansible-collections/community.general/issues This might be a quick fix on their side. If not, then it may make sense to create a |
Ok I've created ansible-collections/ansible.posix#485 |
It would be great to have the output
ansible-playbook --list-tags ...
as JSON. Calling that command with two example playbooks outputs this:I would love to have something like the following as the parser result after calling
ansible-playbook --list-tags playbook.yaml debug.yml | jc --ansible-playbook-list-tags
:The text was updated successfully, but these errors were encountered: