質問編集履歴
1
調べるymlが間違っていました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -113,3 +113,125 @@
|
|
113
113
|
どなたか解決方法がお分かりになる方、教えていただけないでしょうか。
|
114
114
|
|
115
115
|
よろしくお願いします。
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
追記***
|
122
|
+
|
123
|
+
TASK [yum/repos : Add repository 'remi-repo']
|
124
|
+
|
125
|
+
となっていたので、調べているymlが間違っていました。
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
```yml
|
130
|
+
|
131
|
+
- name: Stat /etc/yum.repos.d/remi.repo
|
132
|
+
|
133
|
+
stat: path=/etc/yum.repos.d/remi.repo
|
134
|
+
|
135
|
+
become: yes
|
136
|
+
|
137
|
+
register: has_repo
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
- name: Add repository 'remi-repo'
|
142
|
+
|
143
|
+
yum: name=http://rpms.famillecollet.com/enterprise/remi-release-7.rpm state=present
|
144
|
+
|
145
|
+
become: yes
|
146
|
+
|
147
|
+
when: has_repo.stat.exists == false
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
yumに関するansibleのディレクトリは以下のような構成になっていました。
|
156
|
+
|
157
|
+
epel.repoの内容を調べてみます。
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
└── yum
|
162
|
+
|
163
|
+
└── repos
|
164
|
+
|
165
|
+
├── files
|
166
|
+
|
167
|
+
│ ├── RPM-GPG-KEY-EPEL-6
|
168
|
+
|
169
|
+
│ └── epel.repo
|
170
|
+
|
171
|
+
└── tasks
|
172
|
+
|
173
|
+
└── main.yml
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
```txt
|
180
|
+
|
181
|
+
[epel]
|
182
|
+
|
183
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch
|
184
|
+
|
185
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
|
186
|
+
|
187
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
|
188
|
+
|
189
|
+
failovermethod=priority
|
190
|
+
|
191
|
+
enabled=1
|
192
|
+
|
193
|
+
gpgcheck=1
|
194
|
+
|
195
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
[epel-debuginfo]
|
200
|
+
|
201
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
|
202
|
+
|
203
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
|
204
|
+
|
205
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
|
206
|
+
|
207
|
+
failovermethod=priority
|
208
|
+
|
209
|
+
enabled=0
|
210
|
+
|
211
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
212
|
+
|
213
|
+
gpgcheck=1
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
[epel-source]
|
218
|
+
|
219
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
|
220
|
+
|
221
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
|
222
|
+
|
223
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
|
224
|
+
|
225
|
+
failovermethod=priority
|
226
|
+
|
227
|
+
enabled=0
|
228
|
+
|
229
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
230
|
+
|
231
|
+
gpgcheck=1
|
232
|
+
|
233
|
+
```
|
234
|
+
|
235
|
+
質問を載せておきながら申し訳ないです。
|
236
|
+
|
237
|
+
自己解決しましたら、その旨、追記させていただきます。
|