robertdebock.locale

Ansible Role Locale

Set up the language settings on your system.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

This is an example from molecule/default/converge.yml and it is tested whenever there is a change.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.locale
      locale_lang: de_AT.UTF-8

Make sure your machine is ready. In Continuous Integration (CI), this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap

For more details, see a full explanation and example on using these roles.

Role Variables

The default values for the settings are in defaults/main.yml:

---
# default file for locale

# Choose one locale from the output of the command `locale -a`.
# Some common locales: en_US.UTF-8, nl_NL.utf8, C.utf8, POSIX

locale_lang: en_US.UTF-8
locale_language: "{{ locale_lang }}"
locale_lc_address: "{{ locale_lang }}"
locale_lc_all: "{{ locale_lang }}"
locale_lc_collate: "{{ locale_lang }}"
locale_lc_ctype: "{{ locale_lang }}"
locale_lc_identification: "{{ locale_lang }}"
locale_lc_measurement: "{{ locale_lang }}"
locale_lc_messages: "{{ locale_lang }}"
locale_lc_monetary: "{{ locale_lang }}"
locale_lc_name: "{{ locale_lang }}"
locale_lc_numeric: "{{ locale_lang }}"
locale_lc_paper: "{{ locale_lang }}"
locale_lc_response: "{{ locale_lang }}"
locale_lc_telephone: "{{ locale_lang }}"
locale_lc_time: "{{ locale_lang }}"

locale_timezone: Etc/UTC

Requirements

State of Used Roles

The following roles are used to set up a system, but you can use another method if you prefer.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role is part of many related roles. Check out the documentation for these roles for more information.

Here is a list of related roles: dependencies

Compatibility

This role has been tested with these container images:

Container Tags
Amazon Candidate
EL 9
Debian all
Fedora all
Ubuntu all

You need at least Ansible version 2.12. Tests have been run on:

  • The previous version.
  • The current version.
  • The development version.

If you find any problems, please report them on GitHub.

License

Apache-2.0.

Author Information

robertdebock

Consider sponsoring me.

Informazioni sul progetto

Configure locale on your system.

Installa
ansible-galaxy install robertdebock.locale
Licenza
apache-2.0
Download
42.9k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.