aboutsummaryrefslogtreecommitdiffstats
path: root/roles/locale/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/locale/tasks/main.yml')
-rw-r--r--roles/locale/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/locale/tasks/main.yml b/roles/locale/tasks/main.yml
new file mode 100644
index 0000000..e0b5b6f
--- /dev/null
+++ b/roles/locale/tasks/main.yml
@@ -0,0 +1,10 @@
+- name: set default locale
+ lineinfile:
+ dest: /etc/locale.conf
+ regexp: ^LANG=
+ line: 'LANG={{ locale }}'
+
+- name: install glibc language pack
+ dnf:
+ name: "glibc-langpack-{{ locale | split('_') | first }}"
+ state: present