This Ansible role installs and configures locales on Debian systems. Baseline playbooks run it across all hosts with a standard set of locales.
The Ansible Role is written and actively maintained by Blunix GmbH. It is used in the Blunix Linux Managed Hosting Stack. Its usage is documented at our Linux Managed Hosting Documentation.
- Installs
tzdata,localesandlocales-all. - Ensures a list of locales are generated and available.
- Optionally removes unwanted locales.
- Exposes variables for present/absent locales and default locale environment variables.
- Ansible: >= 2.20.0
- Managed operating systems:
- Debian trixie
The example is split under example/:
example/inventory/group_vars/all/locales.yml— locales to present/absent and defaultLANG.example/play.yml— baseline play applying the role.
Defaults already include en_US.UTF-8; group or host vars can add/remove locales or set other LANG/LC_* values if needed.
Blunix GmbH Berlin
root@Linux:~# Support | Consulting | Hosting | Training
Blunix GmbH provides 24/7/365 Linux emergency support and consulting, Service Level Agreements for Debian Linux managed hosting using Ansible Configuration Management as well as Linux trainings and workshops.
Learn more at https://www.blunix.com.
Click here to see our Contact Information.
For bug reports and feature requests, please open an issue in this repository’s GitHub issue tracker.
Apache-2.0
Please refer to the LICENSE file in the root of this repository.
The directory test/ contains an example play.yml as well as inventory/group_vars/, if applicable to the role. the script example/run-tests.sh creates a IONOS cloud instance with terraform, uses the example inventory and playbook to run the role and then run pytest tests located in example/tests/. Destroy the terraform using ./run-tests.sh -d.