From b2f9ed9d2164451f7c64f87320a20adc7792cd79 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 16 Jul 2019 02:51:36 +0300 Subject: [PATCH] Feat(debian-init-system): Configure locales --- playbooks/roles/debian-init-system/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/playbooks/roles/debian-init-system/tasks/main.yml b/playbooks/roles/debian-init-system/tasks/main.yml index 39c1900..1c83ab3 100644 --- a/playbooks/roles/debian-init-system/tasks/main.yml +++ b/playbooks/roles/debian-init-system/tasks/main.yml @@ -29,3 +29,15 @@ keyserver: keyserver.ubuntu.com id: 5C808C2B65558117 when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')" + +- name: Configure locales + become: true + blockinfile: + path: /etc/locale.gen + block: | + en_US ISO-8859-1 + ru_RU.KOI8-R KOI8-R + ru_RU.UTF-8 UTF-8 +- name: Regenerate locales + become: true + command: /usr/sbin/locale-gen -- 2.39.2