Last active
June 23, 2019 08:40
-
-
Save silverskyvicto/4b5247d9a7364c2601559f314ebe5ab9 to your computer and use it in GitHub Desktop.
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
- name: Install Oracle JDK 8u202 | |
hosts: {{server}} | |
become: yes | |
tasks: | |
- name: Copy a "jdk-8u202-linux-x64.rpm" file into place | |
copy: | |
src: ./files/jdk-8u202-linux-x64.rpm | |
dest: /root/jdk-8u202-linux-x64.rpm | |
- name: Install a list of packages | |
yum: | |
name: | |
- zip | |
- unzip | |
state: present | |
- name: Install Oracle JDK rpm from a local file | |
yum: | |
name: /root/jdk-8u202-linux-x64.rpm | |
state: present | |
- name: Install a list of packages | |
yum: | |
name: | |
- ipa-gothic-fonts-* | |
- ipa-pgothic-fonts-* | |
- ipa-mincho-fonts-* | |
- ipa-pmincho-fonts-* | |
- vlgothic-fonts-* | |
- vlgothic-p-fonts-* | |
state: present | |
- name: Download IPA font file | |
get_url: | |
url: https://ipafont.ipa.go.jp/old/ipafont/IPAfont00303.php | |
dest: /root/IPAfont00303.zip | |
- name: Unarchive a IPA font file | |
unarchive: | |
src: /root/IPAfont00303.zip | |
dest: /root | |
remote_src: yes | |
- name: Unarchive a IPAex font file | |
unarchive: | |
src: https://oscdl.ipa.go.jp/IPAexfont/IPAexfont00401.zip | |
dest: /root | |
remote_src: yes | |
- name: Create a fallback directory if it does not exist | |
file: | |
path: /usr/java/default/jre/lib/fonts/fallback | |
state: directory | |
- name: Copy IPA font file into place | |
copy: | |
src: /root/IPAfont00303/{{item}} | |
dest: /usr/java/default/jre/lib/fonts/fallback/ | |
remote_src: yes | |
with_items: | |
- ipagp.ttf | |
- ipag.ttf | |
- ipamp.ttf | |
- ipam.ttf | |
- name: Copy IPAex font file into place | |
copy: | |
src: /root/IPAexfont00401/{{item}} | |
dest: /usr/java/default/jre/lib/fonts/fallback/ | |
remote_src: yes | |
with_items: | |
- ipaexg.ttf | |
- ipaexm.ttf | |
- name: Delete git directory | |
file: | |
path: /root/{{item}} | |
state: absent | |
with_items: | |
- jdk-8u202-linux-x64.rpm | |
- IPAfont00303.zip | |
- IPAexfont00401.zip | |
- IPAfont00303 | |
- IPAexfont00401 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment