Replace callback_whitelist with callbacks_enabled (#8759)

When running molecule jobs, we saw the folloing warning message:

 [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names
 to new standard, use callbacks_enabled instead. This feature will be removed
 from ansible-core in version 2.15. Deprecation warnings can be disabled by
 setting deprecation_warnings=False in ansible.cfg.

callbacks_enabled has been added since Ansible 2.11 and Kubespray is using
Ansible 2.12 at master branch. So we can use callbacks_enabled safely to
avoid the warning message.
This commit is contained in:
Kenichi Omichi
2022-06-09 13:15:45 -07:00
committed by GitHub
parent cd7381d8de
commit 024a3ee551
12 changed files with 12 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ provisioner:
ANSIBLE_ROLES_PATH: ../../../../
config_options:
defaults:
callback_whitelist: profile_tasks
callbacks_enabled: profile_tasks
timeout: 120
lint:
name: ansible-lint