Browse Source

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.
pull/8951/head
Kenichi Omichi 2 years ago
committed by GitHub
parent
commit
024a3ee551
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 12 deletions
  1. 2
      ansible.cfg
  2. 2
      roles/adduser/molecule/default/molecule.yml
  3. 2
      roles/bastion-ssh-config/molecule/default/molecule.yml
  4. 2
      roles/bootstrap-os/molecule/default/molecule.yml
  5. 2
      roles/container-engine/containerd/molecule/default/molecule.yml
  6. 2
      roles/container-engine/cri-dockerd/molecule/default/molecule.yml
  7. 2
      roles/container-engine/cri-o/molecule/default/molecule.yml
  8. 2
      roles/container-engine/docker/molecule/default/molecule.yml
  9. 2
      roles/container-engine/gvisor/molecule/default/molecule.yml
  10. 2
      roles/container-engine/kata-containers/molecule/default/molecule.yml
  11. 2
      roles/container-engine/youki/molecule/default/molecule.yml
  12. 2
      tests/ansible.cfg

2
ansible.cfg

@ -14,7 +14,7 @@ fact_caching_timeout = 7200
stdout_callback = default
display_skipped_hosts = no
library = ./library
callback_whitelist = profile_tasks,ara_default
callbacks_enabled = profile_tasks,ara_default
roles_path = roles:$VIRTUAL_ENV/usr/local/share/kubespray/roles:$VIRTUAL_ENV/usr/local/share/ansible/roles:/usr/share/kubespray/roles
deprecation_warnings=False
inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds, .gpg

2
roles/adduser/molecule/default/molecule.yml

@ -17,7 +17,7 @@ provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: profile_tasks
callbacks_enabled: profile_tasks
timeout: 120
lint:
name: ansible-lint

2
roles/bastion-ssh-config/molecule/default/molecule.yml

@ -17,7 +17,7 @@ provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: profile_tasks
callbacks_enabled: profile_tasks
timeout: 120
lint:
name: ansible-lint

2
roles/bootstrap-os/molecule/default/molecule.yml

@ -41,7 +41,7 @@ provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: profile_tasks
callbacks_enabled: profile_tasks
timeout: 120
lint:
name: ansible-lint

2
roles/container-engine/containerd/molecule/default/molecule.yml

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

2
roles/container-engine/cri-dockerd/molecule/default/molecule.yml

@ -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

2
roles/container-engine/cri-o/molecule/default/molecule.yml

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

2
roles/container-engine/docker/molecule/default/molecule.yml

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

2
roles/container-engine/gvisor/molecule/default/molecule.yml

@ -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

2
roles/container-engine/kata-containers/molecule/default/molecule.yml

@ -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

2
roles/container-engine/youki/molecule/default/molecule.yml

@ -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

2
tests/ansible.cfg

@ -10,5 +10,5 @@ fact_caching = jsonfile
fact_caching_connection = /tmp
stdout_callback = skippy
library = ./library:../library
callback_whitelist = profile_tasks
callbacks_enabled = profile_tasks
jinja2_extensions = jinja2.ext.do
Loading…
Cancel
Save