From: Oleg Broytman Date: Mon, 15 Jul 2019 23:51:36 +0000 (+0300) Subject: Feat(debian-init-system): Configure locales X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b2f9ed9d2164451f7c64f87320a20adc7792cd79;hp=fdc7c531142c4c200a0d1055b4582210ad298c25;p=ansible.git Feat(debian-init-system): Configure locales --- 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