add locale management
This commit is contained in:
11
tasks/locales.yml
Normal file
11
tasks/locales.yml
Normal 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']
|
||||
@@ -3,6 +3,10 @@
|
||||
- include: resolvconf.yml
|
||||
- include: apt.yml
|
||||
|
||||
- include: locales.yml
|
||||
when: common_locales
|
||||
tags: ['common', 'locales']
|
||||
|
||||
- name: set vim as default editor
|
||||
alternatives: name=editor path=/usr/bin/vim.basic
|
||||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||
|
||||
Reference in New Issue
Block a user