質問編集履歴

1

追記です

2020/05/31 13:15

投稿

papachiropa
papachiropa

スコア14

test CHANGED
File without changes
test CHANGED
@@ -227,3 +227,41 @@
227
227
  ```
228
228
 
229
229
  ご教示宜しくお願い致します。
230
+
231
+
232
+
233
+ 下記Oracle JDKインストール用
234
+
235
+ ```YAML
236
+
237
+ - hosts: tomcat
238
+
239
+ gather_facts: no
240
+
241
+ remote_user: root
242
+
243
+ become: true
244
+
245
+ tasks:
246
+
247
+ - name: create target dir.
248
+
249
+ file: path=/root/soft state=directory
250
+
251
+ - copy:
252
+
253
+ src=/tmp/jdk-8u202-linux-x64.rpm
254
+
255
+ dest=/root/soft/jdk-8u202-linux-x64.rpm
256
+
257
+ owner=root
258
+
259
+ group=root
260
+
261
+ mode=0644
262
+
263
+ - name: install JDK 14 from a local file
264
+
265
+ yum: name=/root/soft/jdk-8u202-linux-x64.rpm state=present
266
+
267
+ ```