質問編集履歴
1
追記です
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -112,4 +112,23 @@
|
|
|
112
112
|
enabled: yes
|
|
113
113
|
become: yes
|
|
114
114
|
```
|
|
115
|
-
ご教示宜しくお願い致します。
|
|
115
|
+
ご教示宜しくお願い致します。
|
|
116
|
+
|
|
117
|
+
下記Oracle JDKインストール用
|
|
118
|
+
```YAML
|
|
119
|
+
- hosts: tomcat
|
|
120
|
+
gather_facts: no
|
|
121
|
+
remote_user: root
|
|
122
|
+
become: true
|
|
123
|
+
tasks:
|
|
124
|
+
- name: create target dir.
|
|
125
|
+
file: path=/root/soft state=directory
|
|
126
|
+
- copy:
|
|
127
|
+
src=/tmp/jdk-8u202-linux-x64.rpm
|
|
128
|
+
dest=/root/soft/jdk-8u202-linux-x64.rpm
|
|
129
|
+
owner=root
|
|
130
|
+
group=root
|
|
131
|
+
mode=0644
|
|
132
|
+
- name: install JDK 14 from a local file
|
|
133
|
+
yum: name=/root/soft/jdk-8u202-linux-x64.rpm state=present
|
|
134
|
+
```
|