localization
Ansible Role: aisbergg.localization
This Ansible role takes care of the localization settings on Linux systems. It includes options to set the locales, keymap and timzone.
Requirements
None.
Role Variables
Variable | Default | Comments |
---|---|---|
localization_language_packs |
[] |
List of language packs to be installed.Some systems provide dedicated packages for each language. You have to install those packages in order to get the locales working.In Ubuntu systems the packages are named language-pack-* and in CentOS 8 glibc-langpack-* . |
localization_locales_present |
[] |
List of locales to be present. |
localization_locales_absent |
[] |
List of locales to be absent. |
localization_locales_default |
{"LANG": "en_US.UTF-8", "LC_ALL": "en_US.UTF-8"} |
Mapping of default locales variables. |
localization_locales_default.LANG |
LANG variable. See man pages for information. |
|
localization_locales_default.LANGUAGE |
LANGUAGE variable. See man pages for information. |
|
localization_locales_default.LC_ADDRESS |
LC_ADDRESS variable. See man pages for information. |
|
localization_locales_default.LC_COLLATE |
LC_COLLATE variable. See man pages for information. |
|
localization_locales_default.LC_CTYPE |
LC_CTYPE variable. See man pages for information. |
|
localization_locales_default.LC_IDENTIFICATION |
LC_IDENTIFICATION variable. See man pages for information. |
|
localization_locales_default.LC_MONETARY |
LC_MONETARY variable. See man pages for information. |
|
localization_locales_default.LC_MESSAGES |
LC_MESSAGES variable. See man pages for information. |
|
localization_locales_default.LC_MEASUREMENT |
LC_MEASUREMENT variable. See man pages for information. |
|
localization_locales_default.LC_NAME |
LC_NAME variable. See man pages for information. |
|
localization_locales_default.LC_NUMERIC |
LC_NUMERIC variable. See man pages for information. |
|
localization_locales_default.LC_PAPER |
LC_PAPER variable. See man pages for information. |
|
localization_locales_default.LC_TELEPHONE |
LC_TELEPHONE variable. See man pages for information. |
|
localization_locales_default.LC_TIME |
LC_TIME variable. See man pages for information. |
|
localization_locales_default.LC_ALL |
LC_ALL variable. See man pages for information. |
|
localization_keymap |
en |
The keymap to be set. |
localization_keymap_toggle |
The alternative keymap to be set. | |
localization_timezone |
The timezone to be set. If left empty, the timezone stays untouched. |
Dependencies
None.
Example Playbook
- hosts: all
vars:
localization_locales_present:
- de_DE.UTF-8
- en_US.UTF-8
localization_locales_absent:
- fr_FR.UTF-8
localization_locales_default:
LANGUAGE: de_DE
LANG: de_DE.UTF-8
LC_ALL: de_DE.UTF-8
localization_keymap: de
localization_keymap_toggle: de-latin1
localization_timezone: Europe/Berlin
roles:
- aisbergg.localization
License
MIT
Author Information
Andre Lehmann (aisberg@posteo.de)
Install
ansible-galaxy install aisbergg/ansible-role-localization
License
mit
Downloads
28
Owner
DevOps, Go, Python, Bash, Ansible, Docker, GitLab-CI, Linux, MariaDB, PostgreSQL, Open Source, Communication Design, Running