質問編集履歴
5
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,25 @@
|
|
93
93
|
name: python-pip
|
94
94
|
|
95
95
|
```
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
③
|
100
|
+
|
101
|
+
```ここに言語を入力
|
102
|
+
|
103
|
+
- hosts: google
|
104
|
+
|
105
|
+
become: yes
|
106
|
+
|
107
|
+
tasks:
|
108
|
+
|
109
|
+
# python3 のインストール
|
110
|
+
|
111
|
+
- name: task
|
112
|
+
|
113
|
+
yum:
|
114
|
+
|
115
|
+
name: python3-pip
|
116
|
+
|
117
|
+
```
|
4
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,6 +44,10 @@
|
|
44
44
|
|
45
45
|
|
46
46
|
|
47
|
+
以下、回答コメントに置きまして、参考コードとして書き込みしておきます。
|
48
|
+
|
49
|
+
①
|
50
|
+
|
47
51
|
```ここに言語を入力
|
48
52
|
|
49
53
|
- hosts: google
|
@@ -72,7 +76,7 @@
|
|
72
76
|
|
73
77
|
```
|
74
78
|
|
75
|
-
|
79
|
+
②
|
76
80
|
|
77
81
|
```ここに言語を入力
|
78
82
|
|
3
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -71,3 +71,21 @@
|
|
71
71
|
- geerlingguy.pip
|
72
72
|
|
73
73
|
```
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```ここに言語を入力
|
78
|
+
|
79
|
+
- hosts: google
|
80
|
+
|
81
|
+
become: yes
|
82
|
+
|
83
|
+
tasks:
|
84
|
+
|
85
|
+
- name: task
|
86
|
+
|
87
|
+
yum:
|
88
|
+
|
89
|
+
name: python-pip
|
90
|
+
|
91
|
+
```
|
2
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,26 +48,26 @@
|
|
48
48
|
|
49
49
|
- hosts: google
|
50
50
|
|
51
|
-
gather_facts: True
|
51
|
+
gather_facts: True
|
52
52
|
|
53
|
-
become: yes
|
53
|
+
become: yes
|
54
54
|
|
55
|
-
tasks:
|
55
|
+
tasks:
|
56
56
|
|
57
|
-
- set_fact:
|
57
|
+
- set_fact:
|
58
58
|
|
59
|
-
ansible_pkg_mgr: dnf
|
59
|
+
ansible_pkg_mgr: dnf
|
60
60
|
|
61
|
-
when:
|
61
|
+
when:
|
62
62
|
|
63
|
-
- ansible_distribution == "CentOS"
|
63
|
+
- ansible_distribution == "CentOS"
|
64
64
|
|
65
|
-
- ansible_distribution_major_version == "8"
|
65
|
+
- ansible_distribution_major_version == "8"
|
66
66
|
|
67
|
-
roles:
|
67
|
+
roles:
|
68
68
|
|
69
|
-
- geerlingguy.repo-epel
|
69
|
+
- geerlingguy.repo-epel
|
70
70
|
|
71
|
-
- geerlingguy.pip
|
71
|
+
- geerlingguy.pip
|
72
72
|
|
73
73
|
```
|
1
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,3 +37,37 @@
|
|
37
37
|
その他の方法もあればお教え下さい。
|
38
38
|
|
39
39
|
宜しくお願い致します。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
```ここに言語を入力
|
48
|
+
|
49
|
+
- hosts: google
|
50
|
+
|
51
|
+
gather_facts: True
|
52
|
+
|
53
|
+
become: yes
|
54
|
+
|
55
|
+
tasks:
|
56
|
+
|
57
|
+
- set_fact:
|
58
|
+
|
59
|
+
ansible_pkg_mgr: dnf
|
60
|
+
|
61
|
+
when:
|
62
|
+
|
63
|
+
- ansible_distribution == "CentOS"
|
64
|
+
|
65
|
+
- ansible_distribution_major_version == "8"
|
66
|
+
|
67
|
+
roles:
|
68
|
+
|
69
|
+
- geerlingguy.repo-epel
|
70
|
+
|
71
|
+
- geerlingguy.pip
|
72
|
+
|
73
|
+
```
|