Skip to content

Instantly share code, notes, and snippets.

@tokida
Created June 30, 2016 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokida/b9ea87f7994c45107c429d621c2343d2 to your computer and use it in GitHub Desktop.
Save tokida/b9ea87f7994c45107c429d621c2343d2 to your computer and use it in GitHub Desktop.
ansible-playbook ubuntu localization(japan)
# Install Modules
- name: apt-get update
apt: update_cache=yes cache_valid_time=3600
- name: standard application install
apt: name={{ item }} state=latest install_recommends=yes
with_items:
- git
- curl
- language-pack-ja-base
- language-pack-ja
- name: set localtime
file: >
src=/usr/share/zoneinfo/Asia/Tokyo
dest=/etc/localtime
owner=root
group=root
mode=0755
- name: set timezone
lineinfile: >
dest=/etc/timezone
line='Asia/Tokyo'
- name: set locale
command: update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment