ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
816 stars 1.5k forks source link

locale_gen Don't do anything #8487

Open samikhelil83 opened 3 months ago

samikhelil83 commented 3 months ago

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

ansibullbot commented 3 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 3 months ago

cc @AugustusKling click here for bot help

lukasz-zaroda commented 2 weeks ago

I confirm, have the same issue here with Ubuntu 24.04.