locale

Ansible Role: locale

An Ansible role that configures locale settings and virtual console keyboard.

Table of Contents

Requirements

  • Ansible 2.9

Role Variables

Generating/Installing Locales

system_locales:
  - name: de_DE.UTF-8
    charset: UTF-8
  - name: en_US.UTF-8
    charset: UTF-8

Language

system_language: 'en_US.UTF-8'

Virtual Console Keyboard

system_keymap: 'dvorak-programmer'

Virtual Console Font

system_font: 'latarcyrheb-sun16'

X Keyboard

system_keyboard_model: 'pc105'
system_keyboard_variant: 'nodeadkeys'
system_keyboard_options: 'terminate:ctrl_alt_bksp Ctrl+Alt+Backspace'
system_keyboard_backspace_behaviour: 'guess'

Dependencies

---

# requirements.yml

roles:

  - name: idiv_biodiversity.locale
    src: https://github.com/idiv-biodiversity/ansible-role-locale
    version: vX.Y.Z

...

Example Playbook

Top-Level Playbook

Write a top-level playbook:

---

- name: head server
  hosts: head

  roles:
    - role: idiv_biodiversity.locale
      tags:
        - locale

...

Role Dependency

Define the role dependency in meta/main.yml:

---

dependencies:

  - role: idiv_biodiversity.locale
    tags:
      - locale

...

License

MIT

Author Information

This role was created in 2017 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).

About

configure locale and virtual console keyboard

Install
ansible-galaxy install idiv-biodiversity/ansible-role-locale
GitHub repository
License
mit
Downloads
3999