From 32588adf72350fa64f4ed352410c07f64f076146 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 26 Dec 2024 13:18:07 +0100 Subject: add locale role --- roles/locale/README.md | 1 + roles/locale/defaults/main.yml | 4 ++++ roles/locale/tasks/main.yml | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 roles/locale/README.md create mode 100644 roles/locale/defaults/main.yml create mode 100644 roles/locale/tasks/main.yml (limited to 'roles/locale') diff --git a/roles/locale/README.md b/roles/locale/README.md new file mode 100644 index 0000000..7740691 --- /dev/null +++ b/roles/locale/README.md @@ -0,0 +1 @@ +This role sets up locales of your choice, including en_US.UTF-8. diff --git a/roles/locale/defaults/main.yml b/roles/locale/defaults/main.yml new file mode 100644 index 0000000..0072326 --- /dev/null +++ b/roles/locale/defaults/main.yml @@ -0,0 +1,4 @@ +# en_US.UTF-8 is always included. +locale_list: + # The better locale for Europe, compared to en_US. + - en_GB.UTF-8 diff --git a/roles/locale/tasks/main.yml b/roles/locale/tasks/main.yml new file mode 100644 index 0000000..54fd42d --- /dev/null +++ b/roles/locale/tasks/main.yml @@ -0,0 +1,5 @@ +- name: Set up locales + become: true + community.general.locale_gen: + name: "{{ locale_list + ['en_US.UTF-8'] }}" + state: present -- cgit v1.2.3