Browse Source

do not use locales-all

master
parent
commit
20001e8330
2 changed files with 21 additions and 7 deletions
  1. +0
    -2
      defaults/main.yml
  2. +21
    -5
      tasks/main.yml

+ 0
- 2
defaults/main.yml View File

@@ -1,6 +1,4 @@
--- ---
timezone: UTC

locales_default: locales_default:
lang: de_DE.UTF-8 lang: de_DE.UTF-8
language: de language: de

+ 21
- 5
tasks/main.yml View File

@@ -1,9 +1,25 @@
--- ---
- name: uninstall locales
apt: pkg=locales state=absent
- name: locales-all absent
apt:
pkg: locales-all
state: absent


- name: install locales-all
apt: pkg=locales-all state=installed
- debconf:
name: locales
question: locales/default_environment_locale
value: de_DE.UTF-8
vtype: select


- name: template /etc/default/locale
- debconf:
name: locales
question: locales/locales_to_be_generated
value: de_DE.UTF-8 UTF-8
vtype: multiselect

- name: locales present
apt:
pkg: locales
state: present

- name: default locale
template: src=default_locale.j2 dest=/etc/default/locale template: src=default_locale.j2 dest=/etc/default/locale

Loading…
Cancel
Save