Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Deprecation warning: callback_whitelist option, normalizing names to new standard, use callback_enabled instead

Open
#123 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ansible
Domain
devops

Research direction

Start with the ansible.cfg configuration shown in the report, especially CALLBACKS_ENABLED, and review how the ansible-role-java setup relates to the deprecated callback_whitelist option. Run any playbook with Ansible core 2.11.2 and confirm that the deprecation warning no longer appears after the configuration is aligned with callback_enabled.

Written by the indexing model from the issue text.

Description

SUMMARY

Ansible is generating warnings saying that callback_whitelist is deprecated and to use callback_enabled instead:

[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callback_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.
ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • ansible-role-java 7.1.1
ANSIBLE VERSION
ansible [core 2.11.2]
  config file = /home/f5331870/digital-ansible/ansible.cfg
  configured module search path = ['/home/f5331870/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/f5331870/.cache/venv/mobile-ansible-core-3.8/lib64/python3.8/site-packages/ansible
  ansible collection location = /home/f5331870/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/f5331870/.cache/venv/mobile-ansible-core-3.8/bin/ansible
  python version = 3.8.6 (default, Oct 27 2020, 09:13:12) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]
  jinja version = 3.0.1
  libyaml = True
CONFIGURATION
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callback_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.
ANSIBLE_NOCOWS(/home/f5331870/digital-ansible/ansible.cfg) = True
CACHE_PLUGIN(/home/f5331870/digital-ansible/ansible.cfg) = redis
CACHE_PLUGIN_CONNECTION(/home/f5331870/digital-ansible/ansible.cfg) = localhost:6379:0
CACHE_PLUGIN_TIMEOUT(/home/f5331870/digital-ansible/ansible.cfg) = 86400
CALLBACKS_ENABLED(/home/f5331870/digital-ansible/ansible.cfg) = ['profile_tasks']
DEFAULT_BECOME(/home/f5331870/digital-ansible/ansible.cfg) = False
DEFAULT_FORKS(/home/f5331870/digital-ansible/ansible.cfg) = 100
DEFAULT_HOST_LIST(/home/f5331870/digital-ansible/ansible.cfg) = ['/home/f5331870/digital-ansible/inventories/manual_inventory_int.ini']
DEFAULT_LOG_PATH(/home/f5331870/digital-ansible/ansible.cfg) = /home/f5331870/digital-ansible/.logs/ansible.log
DEFAULT_ROLES_PATH(/home/f5331870/digital-ansible/ansible.cfg) = ['/home/f5331870/digital-ansible/roles_external', '/home/f5331870/digital-ansible/roles']
DEFAULT_TIMEOUT(/home/f5331870/digital-ansible/ansible.cfg) = 180
DEFAULT_VAULT_PASSWORD_FILE(/home/f5331870/digital-ansible/ansible.cfg) = /home/f5331870/digital-ansible/vault/vault-nonprod.txt
HOST_KEY_CHECKING(/home/f5331870/digital-ansible/ansible.cfg) = False
INTERPRETER_PYTHON(/home/f5331870/digital-ansible/ansible.cfg) = auto_silent
INVENTORY_CACHE_ENABLED(/home/f5331870/digital-ansible/ansible.cfg) = True
INVENTORY_CACHE_PLUGIN(/home/f5331870/digital-ansible/ansible.cfg) = redis
RETRY_FILES_ENABLED(/home/f5331870/digital-ansible/ansible.cfg) = True
RETRY_FILES_SAVE_PATH(/home/f5331870/digital-ansible/ansible.cfg) = /home/f5331870/.ansible-retry
OS / ENVIRONMENT
LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.9.2009 (Core)
Release:	7.9.2009
Codename:	Core
STEPS TO REPRODUCE

Run any playbook.

EXPECTED RESULTS

NO deprecation warning.

ACTUAL RESULTS

Deprecation warning.

[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callback_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.
Dominant language
Jinja
Stars
60
Forks
30
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lean-delivery/ansible-role-java

All issues in lean-delivery/ansible-role-java

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.