浏览代码

do not use locales-all

master
父节点
当前提交
20001e8330
共有 2 个文件被更改,包括 21 次插入7 次删除
  1. +0
    -2
      defaults/main.yml
  2. +21
    -5
      tasks/main.yml

+ 0
- 2
defaults/main.yml 查看文件

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

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

+ 21
- 5
tasks/main.yml 查看文件

@@ -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

正在加载...
取消
保存