An ansible role to install the locales package and set up your system's locale.
Tested on:
- Ubuntu 14.04 LTS
Should work with:
- All Ubuntu
# 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.
None.
- hosts: servers
roles:
- { role: adriagalin.locales }
- Add Debian path for locale.
GPLv3 License.
During development, some roles in Ansible Galaxy/Github also inspired me:
- michaelrigart
- knopki
- tersmitten
- nickjj
- and many others.
thank you.