https://github.com/arillso/ansible.localization
This role configures different aspects of localization under Linux and Windows.
https://github.com/arillso/ansible.localization
ansible ansible-role localization
Last synced: about 1 year ago
JSON representation
This role configures different aspects of localization under Linux and Windows.
- Host: GitHub
- URL: https://github.com/arillso/ansible.localization
- Owner: arillso
- License: mit
- Created: 2019-06-09T16:19:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-21T14:24:00.000Z (almost 7 years ago)
- Last Synced: 2025-02-17T11:16:05.715Z (over 1 year ago)
- Topics: ansible, ansible-role, localization
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: localization
[](https://travis-ci.org/arillso/ansible.localization) [](https://sbaerlo.ch/licence) [](https://galaxy.ansible.com/arillso/localization) [](https://galaxy.ansible.com/arillso/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
```bash
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
```yml
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.
```yml
localization_timezone:
```
### Linux
#### locale
Default locale. See `man 7 locale`
```yml
localization_default_locale: 'en_US.UTF-8'
```
#### console keyboard
Console keyboard layout (sg = swiss german)
```yml
localization_keymap: 'sg'
```
### Windows
#### region
Sets the location, format and unicode language settings of a Windows.
```yml
localization_region:
location: 223
format: de-CH
unicode_language: de-CH
```
#### keyboard input
Sets the keyboard layout for Windows
```yml
localization_inputlang: 0807:00000807
```
## Dependencies
none
## Example Playbook
```yml
- hosts: all
roles:
- arillso.localization
```
## Author
- [Simon Bärlocher](https://sbaerlocher.ch)
## License
This project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text.
## Copyright
(c) 2019, Arillso