Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

adriagalin/ansible.locales

Repository files navigation

adriagalin.locales

Build Status Ansible Galaxy

An ansible role to install the locales package and set up your system's locale.

Requirements

Tested on:

  • Ubuntu 14.04 LTS

Should work with:

  • All Ubuntu

Role Variables

# the amount in seconds to cache apt-update.
ag_apt_cache_valid_time: 3600

# the locale file.
ag_locale_config_path: /var/lib/locales/supported.d/local

# the language packs that you want to install.
ag_locales_language_packs_present:
  - { language: language-pack-en, state: latest }
  - { language: language-pack-en-base, state: latest }

# the language packs that you want to remove.
ag_locales_language_packs_absent: []

# the default locale
ag_default_locale: en_US.UTF-8

# the locale(s) that you want to present.
ag_locales_present:
  - en_US.UTF-8

# the locale(s) that you want to absent.
ag_locales_absent: []

If you need the locale(s) more customized, you can take a look in templates/etc/default/locale.j2 file. There are other vars.

Dependencies

None.

Example Playbook

    - hosts: servers
      roles:
         - { role: adriagalin.locales }

ToDo

  • Add Debian path for locale.

License

GPLv3 License.

Author Information

Adrià Galín

Inspiration

During development, some roles in Ansible Galaxy/Github also inspired me:

thank you.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published