Created
June 30, 2016 06:24
-
-
Save tokida/b9ea87f7994c45107c429d621c2343d2 to your computer and use it in GitHub Desktop.
ansible-playbook ubuntu localization(japan)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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