localization
Ansible Role: localization
Description
This role configures different aspects of localization under Linux and Windows. It sets the timezone, the default locale and the keyboard layout during input.
Installation
ansible-galaxy install arillso.localization
Requirements
Role Variables
timezone
Linux and Windows use different Timezone formats. Therefore, for each OS a variable is provided for the Timezone
localization_timezone_windows: 'W. Europe Standard Time'
localization_timezone_linux: 'Europe/Zurich'
Alternatively, the variable 'localization_timezone' can be used directly. Make sure to use the correct format.
localization_timezone:
Linux
locale
Default locale. See man 7 locale
localization_default_locale: 'en_US.UTF-8'
console keyboard
Console keyboard layout (sg = swiss german)
localization_keymap: 'sg'
Windows
region
Sets the location, format and unicode language settings of a Windows.
localization_region:
location: 223
format: de-CH
unicode_language: de-CH
keyboard input
Sets the keyboard layout for Windows
localization_inputlang: 0807:00000807
Dependencies
none
Example Playbook
- hosts: all
roles:
- arillso.localization
Author
License
This project is under the MIT License. See the LICENSE file for the full license text.
Copyright
(c) 2019, Arillso