Bläddra i källkod

current state from 2015-11-29

master
Markus Brecchtel 8 år sedan
incheckning
ef6c5eb8f7
4 ändrade filer med 62 tillägg och 0 borttagningar
  1. +1
    -0
      .gitignore
  2. +6
    -0
      defaults/main.yml
  3. +9
    -0
      tasks/main.yml
  4. +46
    -0
      templates/default_locale.j2

+ 1
- 0
.gitignore Visa fil

@@ -0,0 +1 @@
*~

+ 6
- 0
defaults/main.yml Visa fil

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

locales_default:
lang: C.UTF-8
language: en

+ 9
- 0
tasks/main.yml Visa fil

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

- name: install locales-all
apt: pkg=locales-all state=installed

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

+ 46
- 0
templates/default_locale.j2 Visa fil

@@ -0,0 +1,46 @@
LANG="{{ locales_default.lang }}"
{% if locales_default.language is defined %}
LANGUAGE="{{ locales_default.language }}"
{% endif %}
{% if locales_default.lc_address is defined %}
LC_ADDRESS="{{ locales_default.lc_address }}"
{% endif %}
{% if locales_default.lc_all is defined %}
LC_ALL="{{ locales_default.lc_all }}"
{% endif %}
{% if locales_default.lc_collate is defined %}
LC_COLLATE="{{ locales_default.lc_collate }}"
{% endif %}
{% if locales_default.lc_ctype is defined %}
LC_CTYPE="{{ locales_default.lc_ctype }}"
{% endif %}
{% if locales_default.lc_identification is defined %}
LC_IDENTIFICATION="{{ locales_default.lc_identification }}"
{% endif %}
{% if locales_default.lc_measurement is defined %}
LC_MEASUREMENT="{{ locales_default.lc_measurement }}"
{% endif %}
{% if locales_default.lc_messages is defined %}
LC_MESSAGES="{{ locales_default.lc_messages }}"
{% endif %}
{% if locales_default.lc_monetary is defined %}
LC_MONETARY="{{ locales_default.lc_monetary }}"
{% endif %}
{% if locales_default.lc_name is defined %}
LC_NAME="{{ locales_default.lc_name }}"
{% endif %}
{% if locales_default.lc_numeric is defined %}
LC_NUMERIC="{{ locales_default.lc_numeric }}"
{% endif %}
{% if locales_default.lc_paper is defined %}
LC_PAPER="{{ locales_default.lc_paper }}"
{% endif %}
{% if locales_default.lc_response is defined %}
LC_RESPONSE="{{ locales_default.lc_response }}"
{% endif %}
{% if locales_default.lc_telephone is defined %}
LC_TELEPHONE="{{ locales_default.lc_telephone }}"
{% endif %}
{% if locales_default.lc_time is defined %}
LC_TIME="{{ locales_default.lc_time }}"
{% endif %}

Laddar…
Avbryt
Spara