From 99a983c92ca981f189ce97bec7b566d59300950a Mon Sep 17 00:00:00 2001 From: Boris Korzun Date: Thu, 27 May 2021 23:41:20 +0300 Subject: [PATCH] config: small typo fix (#74845) --- changelogs/fragments/70028-config-small-typo-fix.yml | 2 ++ docs/docsite/rst/plugins/callback.rst | 2 +- examples/ansible.cfg | 2 +- lib/ansible/config/base.yml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/70028-config-small-typo-fix.yml diff --git a/changelogs/fragments/70028-config-small-typo-fix.yml b/changelogs/fragments/70028-config-small-typo-fix.yml new file mode 100644 index 00000000000..5437c7e6e77 --- /dev/null +++ b/changelogs/fragments/70028-config-small-typo-fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - config - use ``callbacks_enabled`` instead ``callback_enabled`` in a deprecated message (https://github.com/ansible/ansible/issues/70028). diff --git a/docs/docsite/rst/plugins/callback.rst b/docs/docsite/rst/plugins/callback.rst index 17a3a25043d..f185b7bf4a8 100644 --- a/docs/docsite/rst/plugins/callback.rst +++ b/docs/docsite/rst/plugins/callback.rst @@ -34,7 +34,7 @@ Most callbacks shipped with Ansible are disabled by default and need to be enabl .. code-block:: ini - #callback_enabled = timer, mail, profile_roles, collection_namespace.collection_name.custom_callback + #callbacks_enabled = timer, mail, profile_roles, collection_namespace.collection_name.custom_callback Setting a callback plugin for ``ansible-playbook`` -------------------------------------------------- diff --git a/examples/ansible.cfg b/examples/ansible.cfg index d682a9be16b..e195363a492 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -84,7 +84,7 @@ # by default. # # Enable callback plugins, they can output to stdout but cannot be 'stdout' type. -#callback_enabled = timer, mail +#callbacks_enabled = timer, mail # Determine whether includes in tasks and handlers are "static" by # default. As of 2.0, includes are dynamic by default. Setting these diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index 949afab57cc..a34cd283ca6 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -574,7 +574,7 @@ CALLBACKS_ENABLED: deprecated: why: normalizing names to new standard version: "2.15" - alternatives: 'callback_enabled' + alternatives: 'callbacks_enabled' - key: callbacks_enabled section: defaults version_added: '2.11'