Skip to content

Commit

Permalink
Set locale as en_US.UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Nov 2, 2024
1 parent 5cdc899 commit 9cfe09e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions tasks/all/set-locale.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9cfe09e

Please sign in to comment.