質問編集履歴
1
インデントを揃えました
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,33 +6,37 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
```YAML
|
10
10
|
|
11
|
-
|
11
|
+
- hosts: 192.168.100.251
|
12
12
|
|
13
|
-
|
13
|
+
gather_facts: no
|
14
14
|
|
15
|
-
|
15
|
+
remote_user: root
|
16
16
|
|
17
|
-
t
|
17
|
+
become: true
|
18
18
|
|
19
|
-
|
19
|
+
tasks:
|
20
20
|
|
21
|
-
|
21
|
+
- name: install_packages
|
22
22
|
|
23
|
-
|
23
|
+
yum:
|
24
24
|
|
25
|
-
|
25
|
+
name: "{{ packages }}"
|
26
26
|
|
27
|
-
|
27
|
+
vars:
|
28
28
|
|
29
|
-
|
29
|
+
packages:
|
30
30
|
|
31
|
-
|
31
|
+
- ConsoleKit-0.4.1-6.el6.x86_64
|
32
32
|
|
33
|
-
|
33
|
+
- ElectricFence-2.2.2-39.el6.x86_64
|
34
34
|
|
35
|
+
- ImageMagick-libs-7.0.10-13.x86_64
|
36
|
+
|
35
|
-
|
37
|
+
# 合計1000近くあります
|
38
|
+
|
39
|
+
```
|
36
40
|
|
37
41
|
|
38
42
|
|
@@ -42,11 +46,15 @@
|
|
42
46
|
|
43
47
|
成功するので文法エラーではなさそうです。
|
44
48
|
|
45
|
-
|
49
|
+
```YAML
|
46
50
|
|
47
|
-
|
51
|
+
vars:
|
48
52
|
|
53
|
+
packages:
|
54
|
+
|
49
|
-
|
55
|
+
- wget
|
56
|
+
|
57
|
+
```
|
50
58
|
|
51
59
|
|
52
60
|
|