Skip to content

locale_gen: [DEPRECATION WARNING] when using the module #8410

Closed
@rgl

Description

Summary

geting a "[DEPRECATION WARNING]" when using the module.

Issue Type

Bug Report

Component Name

locale_gen

Ansible Version

$ ansible --version
ansible [core 2.17.0]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
Collection                               Version
---------------------------------------- -------
community.general                        9.0.0  

Configuration

$ ansible-config dump --only-changed

OS / Environment

Ubuntu 22.04

Steps to Reproduce

- name: Add support for the pt_PT locale
  community.general.locale_gen:
    name: pt_PT.UTF-8

Expected Results

no deprecation warning.

Actual Results

TASK [base : Add support for the pt_PT locale] *********************************
[DEPRECATION WARNING]: This class is using the old VarDict from ModuleHelper, 
which is deprecated. Set the class variable use_old_vardict to False and make 
the necessary adjustments.The old VarDict class will be removed in 
community.general 11.0.0. This feature will be removed from community.general 
in version 11.0.0. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions