-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"locale_gen" module fails on CentOS 6, CentOS 7 and RHEL 8 (Rocky) #4305
Comments
Files identified in the description: If these files are incorrect, please update the |
This comment from the linked issue seems to explain the situation pretty well: ansible/ansible#44708 (comment) |
I agree but I still think that there is room for improvement.
|
Updating the documentation tends to be a lot easier than adding a distribution check (also there are lots of other distributions, some might have this and some might not). |
Files identified in the description: If these files are incorrect, please update the |
I want to update the documentation. Any ideas about what exactly to write? I would have gone with an additional note:
|
I would rather formulate this as |
Hi @felixfontein, I take from your comment, that the general direction of my proposed change is right. :) |
And I like your version more than mine, because you use active voice and mine has passive voice. I'll prepare a PR. |
Summary
When using module "locale_gen" for machines with CentOS 6 or CentOS 7 or Rocky Linux 8 get fail message "/etc/locale.gen and /var/lib/locales/supported.d/local are missing. Is the package locales installed ?"
But there is no such package for CentOS. I think this module can be worked for supporting RHEL, or there must be listing in module description with supported and not-supported OS.
Mostly migrating this original report that got closed without fix: ansible/ansible#44708
Issue Type
Bug Report
Component Name
locale_gen
Ansible Version
Community.general Version
$ ansible-galaxy collection list community.general
Configuration
$ ansible-config dump --only-changed
OS / Environment
Rocky Linux 8 (RHEL 8)
Steps to Reproduce
Expected Results
Successful task execution.
Module "locale_gen" must check ansible_os_family and ansible_distribution release and run accordingle right locale generations commands (localedef), supporting not only Debian-based OS, but RHEL-based also.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: