From 9cfe09ed0dc87e810e11fa756877e20f90dbf1e7 Mon Sep 17 00:00:00 2001 From: Hayato Date: Sat, 2 Nov 2024 22:28:15 +0900 Subject: [PATCH] Set locale as en_US.UTF-8 --- tasks/all/main.yml | 4 ++++ tasks/all/set-locale.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tasks/all/set-locale.yml diff --git a/tasks/all/main.yml b/tasks/all/main.yml index c839b30..225510b 100644 --- a/tasks/all/main.yml +++ b/tasks/all/main.yml @@ -21,6 +21,10 @@ ansible.builtin.import_tasks: file: tasks/all/timezone.yml +- name: "Common / Set Locale" + ansible.builtin.import_tasks: + file: tasks/all/set-locale.yml + - name: "Common / Put authorized Key for hayato" ansible.builtin.import_tasks: file: tasks/all/authorized_keys.yml diff --git a/tasks/all/set-locale.yml b/tasks/all/set-locale.yml new file mode 100644 index 0000000..9d3e14e --- /dev/null +++ b/tasks/all/set-locale.yml @@ -0,0 +1,14 @@ +--- +- name: "Install software-properties-common" + ansible.builtin.apt: + name: "{{ item }}" + state: present + update_cache: true + loop: + - locales-all + - language-pack-en + +- name: "Set locale as en_US.UTF-8" + community.general.locale_gen: + name: "en_US.UTF-8" + state: present