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

Merged
merged 1 commit into from
May 22, 2025
Merged

The callback yaml is deprecated. #2573

merged 1 commit into from
May 22, 2025

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)

@gotmax23
Copy link
Collaborator

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

Thank you for your contributions! For now, the bot currently only considers issues and PRs made in the ansible-documentation repository when applying the new_contributor label.

@vbotka
Copy link
Contributor Author

vbotka commented May 22, 2025

@gotmax23, I see . Thank you!

@gotmax23 gotmax23 requested a review from a team May 22, 2025 20:05
@felixfontein felixfontein added backport-2.17 Automatically create a backport for the stable-2.17 branch backport-2.18 Automatically create a backport for the stable-2.18 branch backport-2.19 Automatically create a backport for the stable-2.19 branch labels May 22, 2025
@gotmax23 gotmax23 merged commit 2b8c2a0 into ansible:devel May 22, 2025
12 checks passed
Copy link

patchback bot commented May 22, 2025

Backport to stable-2.17: 💔 cherry-picking failed — conflicts found

❌ Failed to cleanly apply 2b8c2a0 on top of patchback/backports/stable-2.17/2b8c2a0acabd0fc07f51ee03e28f67df802cabf3/pr-2573

Backporting merged PR #2573 into devel

  1. Ensure you have a local repo clone of your fork. Unless you cloned it
    from the upstream, this would be your origin remote.
  2. Make sure you have an upstream repo added as a remote too. In these
    instructions you'll refer to it by the name upstream. If you don't
    have it, here's how you can add it:
    $ git remote add upstream https://github.com/ansible/ansible-documentation.git
  3. Ensure you have the latest copy of upstream and prepare a branch
    that will hold the backported code:
    $ git fetch upstream
    $ git checkout -b patchback/backports/stable-2.17/2b8c2a0acabd0fc07f51ee03e28f67df802cabf3/pr-2573 upstream/stable-2.17
  4. Now, cherry-pick PR The callback yaml is deprecated. #2573 contents into that branch:
    $ git cherry-pick -x 2b8c2a0acabd0fc07f51ee03e28f67df802cabf3
    If it'll yell at you with something like fatal: Commit 2b8c2a0acabd0fc07f51ee03e28f67df802cabf3 is a merge but no -m option was given., add -m 1 as follows instead:
    $ git cherry-pick -m1 -x 2b8c2a0acabd0fc07f51ee03e28f67df802cabf3
  5. At this point, you'll probably encounter some merge conflicts. You must
    resolve them in to preserve the patch from PR The callback yaml is deprecated. #2573 as close to the
    original as possible.
  6. Push this branch to your fork on GitHub:
    $ git push origin patchback/backports/stable-2.17/2b8c2a0acabd0fc07f51ee03e28f67df802cabf3/pr-2573
  7. Create a PR, ensure that the CI is green. If it's not — update it so that
    the tests and any other checks pass. This is it!
    Now relax and wait for the maintainers to process your pull request
    when they have some cycles to do reviews. Don't worry — they'll tell you if
    any improvements are necessary when the time comes!

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@gotmax23
Copy link
Collaborator

Thanks!

Copy link

patchback bot commented May 22, 2025

Backport to stable-2.18: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.18/2b8c2a0acabd0fc07f51ee03e28f67df802cabf3/pr-2573

Backported as #2655

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 22, 2025
Copy link

patchback bot commented May 22, 2025

Backport to stable-2.19: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.19/2b8c2a0acabd0fc07f51ee03e28f67df802cabf3/pr-2573

Backported as #2656

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 22, 2025
@vbotka vbotka deleted the patch-1 branch May 23, 2025 00:05
felixfontein pushed a commit that referenced this pull request May 28, 2025
(cherry picked from commit 2b8c2a0)

Co-authored-by: Vladimir Botka <[email protected]>
felixfontein pushed a commit that referenced this pull request May 28, 2025
(cherry picked from commit 2b8c2a0)

Co-authored-by: Vladimir Botka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-2.17 Automatically create a backport for the stable-2.17 branch backport-2.18 Automatically create a backport for the stable-2.18 branch backport-2.19 Automatically create a backport for the stable-2.19 branch 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.

4 participants