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