arillso.localization

Ansible Role: Localization

Build Status license Ansible Galaxy Ansible Role

Description

This role sets up localization settings for Linux and Windows. It configures the timezone, default language, and keyboard layout for typing.

Installation

To install this role, run:

ansible-galaxy install arillso.localization

Requirements

None

Role Variables

Timezone

Linux and Windows use different formats for timezones. You can set them with these variables:

localization_timezone_windows: 'W. Europe Standard Time'
localization_timezone_linux: 'Europe/Zurich'

You can also use a general timezone variable:

localization_timezone:

Linux

Locale

This sets the default language. Check man 7 locale for more information.

localization_default_locale: 'en_US.UTF-8'

Console Keyboard

Sets the keyboard layout for the console (sg = Swiss German).

localization_keymap: 'sg'

Windows

Region

This sets the location, date format, and language settings for Windows.

localization_region:
  location: 223
  format: de-CH
  unicode_language: de-CH

Keyboard Input

Sets the keyboard layout for Windows.

localization_inputlang: 0807:00000807

Example Playbook

Here’s an example of how to use this role in a playbook:

- hosts: all
  roles:
    - arillso.localization

Author

License

This project is licensed under the MIT License. For the full text, see the LICENSE file.

(c) 2019, Arillso

Informazioni sul progetto

Set timezone, locale and keymap on Linux and Windows.

Installa
ansible-galaxy install arillso.localization
Licenza
mit
Download
2.6k
Proprietario