]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian-init-system): Configure locales
authorOleg Broytman <phd@phdru.name>
Mon, 15 Jul 2019 23:51:36 +0000 (02:51 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2019 18:28:42 +0000 (21:28 +0300)
playbooks/roles/debian-init-system/tasks/main.yml

index 39c1900b0df69c075a80623578879a76e4f9fc11..1c83ab39cd73914c7da0249bea5372d8e9deeba9 100644 (file)
     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