Skip to content

The callback yaml is deprecated. #2573

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open

Conversation

vbotka
Copy link
Contributor

@vbotka vbotka commented Apr 27, 2025

The recommended replacement is ANSIBLE_CALLBACK_RESULT_FORMAT=yaml

@ansible-documentation-bot ansible-documentation-bot bot added the new_contributor This PR is the first contribution by a new community member. label Apr 27, 2025
@ansible-documentation-bot
Copy link
Contributor

Thanks for your Ansible docs contribution! We talk about Ansible documentation on Matrix at #docs:ansible.im if you ever want to join us and chat about the docs! We meet on Matrix every Tuesday. See the Ansible calendar for meeting details. We welcome additions to our weekly agenda items too. You can add the dawgs-meeting tag to a forum topic to bring it up at the next meeting.

@samccann
Copy link
Contributor

samccann commented May 6, 2025

Hi @vbotka and thanks for the PR! Can you tell me where you found this was deprecated? The deprecation should be noted in https://docs.ansible.com/ansible/devel/reference_appendices/config.html#envvar-ANSIBLE_STDOUT_CALLBACK but isn't there.

@vbotka
Copy link
Contributor Author

vbotka commented May 6, 2025

Sure. Quoting from community.general.yaml callback:

DEPRECATED
Removed in: version 13.0.0
Why: Starting in ansible-core 2.13, the ansible.builtin.default callback has support for printing output in YAML format.
Alternative: Use result_format=yaml.

For details, please look at forum.ansible.com community.general.yaml has been deprecated

The DEPRECATION WARNING comes from the callback community.general.yaml. ANSIBLE_STDOUT_CALLBACK is not to blame.

JFYI, the fix ANSIBLE_CALLBACK_RESULT_FORMAT is an option of ansible.builtin.default callback.

@vbotka
Copy link
Contributor Author

vbotka commented May 7, 2025

For the record: I'm not a new contributor. I've already contributed:

commit 5448661aec83fea3f353685310fea57abf20e140
Author: Vladimir Botka <[email protected]>
Date:   Thu Feb 3 21:40:04 2022 +0100

    Update 'Ansible and BSD' section 'Setting the Python interpreter'. (#76825)

commit 9a9ef01997557556e9a940f1f3f36b3bb3655398
Author: Vladimir Botka <[email protected]>
Date:   Thu Feb 3 21:29:25 2022 +0100

    Update 'Installing Ansible on FreeBSD'. (#76849)


    Co-authored-by: Abhijeet Kasurde <[email protected]>
    Co-authored-by: Sandra McCann <[email protected]>

commit 8c3e576cd578410cfd1969d612a61933f4382ed4
Author: Vladimir Botka <[email protected]>
Date:   Thu Oct 7 21:35:43 2021 +0200

    Fix docs get_url dest comment. Checksum does not prevent download if dest is dir. (#73185)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new_contributor This PR is the first contribution by a new community member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants