add locale management

This commit is contained in:
Farhad Shahbazi
2016-05-13 12:23:20 +02:00
parent 5cbb4a0398
commit 2ab75757cd
4 changed files with 25 additions and 0 deletions

11
tasks/locales.yml Normal file
View File

@@ -0,0 +1,11 @@
---
- name: set locales
locale_gen: name="{{ item.name }}" state="{{ item.state | default('present') }}"
with_items: "{{ common_locales }}"
tags: ['common', 'locales']
- name: set default locale
lineinfile: dest="/etc/default/locale" regexp="LANG=" line="LANG={{ common_locales_default }}"
when: common_locales_default
tags: ['common', 'locales']