From c9cd54a8459855eb19e4144c4b6ff90068118803 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 7 Jun 2025 08:27:24 +0200 Subject: [PATCH] YAML callback: remove 12.0.0 already (#10213) Remove YAML callback from 12.0.0 already. --- changelogs/fragments/10213-yaml-deprecation.yml | 5 +++++ meta/runtime.yml | 2 +- plugins/callback/yaml.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/10213-yaml-deprecation.yml diff --git a/changelogs/fragments/10213-yaml-deprecation.yml b/changelogs/fragments/10213-yaml-deprecation.yml new file mode 100644 index 0000000000..d75d2c1623 --- /dev/null +++ b/changelogs/fragments/10213-yaml-deprecation.yml @@ -0,0 +1,5 @@ +deprecated_features: + - "yaml callback plugin - the YAML callback plugin was deprecated for removal in community.general 13.0.0. + Since it needs to use ansible-core internals since ansible-core 2.19 that are changing a lot, + we will remove this plugin already from community.general 12.0.0 to ease the maintenance burden + (https://github.com/ansible-collections/community.general/pull/10213)." diff --git a/meta/runtime.yml b/meta/runtime.yml index 3c41c14fba..cfaf81ff1f 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -86,7 +86,7 @@ plugin_routing: = yes' option. yaml: deprecation: - removal_version: 13.0.0 + removal_version: 12.0.0 warning_text: >- The plugin has been superseded by the the option `result_format=yaml` in callback plugin ansible.builtin.default from ansible-core 2.13 onwards. connection: diff --git a/plugins/callback/yaml.py b/plugins/callback/yaml.py index a305375939..e89e0d6bee 100644 --- a/plugins/callback/yaml.py +++ b/plugins/callback/yaml.py @@ -12,7 +12,7 @@ name: yaml type: stdout short_description: YAML-ized Ansible screen output deprecated: - removed_in: 13.0.0 + removed_in: 12.0.0 why: Starting in ansible-core 2.13, the P(ansible.builtin.default#callback) callback has support for printing output in YAML format. alternative: Use O(ansible.builtin.default#callback:result_format=yaml).