community.general icon indicating copy to clipboard operation
community.general copied to clipboard

locale_gen Don't do anything

Open samikhelil83 opened this issue 2 months ago • 2 comments

Summary

I'm trying to add this locale on Ubuntu 22.04 or Ubuntu 24.04 but nothing happens, the output of the command is always Changed:false. ansible -m locale_gen -a "name=es_AR.UTF-8 state=present" localhost

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.10/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /usr/lib/python3/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.general 1.3.6  

# /usr/local/lib/python3.10/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.general 9.0.1

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = None

OS / Environment

ubuntu 22.02

Steps to Reproduce

# ansible -m locale_gen -a "name=es_AR.UTF-8 state=present" localhost
localhost | SUCCESS => {
    "changed": false,
    "name": "es_AR.UTF-8",
    "ubuntu_mode": true
}




Expected Results

# locale -a | grep es_AR 
# es_AR.utf8

Actual Results

# locale -a |grep es_AR 
#

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

samikhelil83 avatar Jun 11 '24 16:06 samikhelil83