adriagalin.locales
adriagalin.locales
This is an Ansible role that installs the locales package and sets up your system’s locale.
Requirements
Tested on:
- Ubuntu 14.04 LTS
Should work on:
- All Ubuntu versions
Role Variables
# Time in seconds to cache apt-update.
ag_apt_cache_valid_time: 3600
# Path to the locale file.
ag_locale_config_path: /var/lib/locales/supported.d/local
# Language packs you want to install.
ag_locales_language_packs_present:
- { language: language-pack-en, state: latest }
- { language: language-pack-en-base, state: latest }
# Language packs you want to remove.
ag_locales_language_packs_absent: []
# Default locale.
ag_default_locale: en_US.UTF-8
# Locales you want to include.
ag_locales_present:
- en_US.UTF-8
# Locales you want to remove.
ag_locales_absent: []
If you need more customized locales, check the templates/etc/default/locale.j2 file. There are other variables available.
Dependencies
None needed.
Example Playbook
- hosts: servers
roles:
- { role: adriagalin.locales }
To Do
- Add Debian path for locale.
License
GPLv3 License.
Author Information
Inspiration
During development, I was inspired by several roles in Ansible Galaxy and GitHub:
- michaelrigart
- knopki
- tersmitten
- nickjj
- And many others.
Thank you.
Installa
ansible-galaxy install adriagalin.locales
Licenza
gpl-3.0
Download
243
Proprietario