質問編集履歴
1
調べるymlが間違っていました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -55,4 +55,65 @@
|
|
55
55
|
```
|
56
56
|
|
57
57
|
どなたか解決方法がお分かりになる方、教えていただけないでしょうか。
|
58
|
-
よろしくお願いします。
|
58
|
+
よろしくお願いします。
|
59
|
+
|
60
|
+
|
61
|
+
追記***
|
62
|
+
TASK [yum/repos : Add repository 'remi-repo']
|
63
|
+
となっていたので、調べているymlが間違っていました。
|
64
|
+
|
65
|
+
```yml
|
66
|
+
- name: Stat /etc/yum.repos.d/remi.repo
|
67
|
+
stat: path=/etc/yum.repos.d/remi.repo
|
68
|
+
become: yes
|
69
|
+
register: has_repo
|
70
|
+
|
71
|
+
- name: Add repository 'remi-repo'
|
72
|
+
yum: name=http://rpms.famillecollet.com/enterprise/remi-release-7.rpm state=present
|
73
|
+
become: yes
|
74
|
+
when: has_repo.stat.exists == false
|
75
|
+
|
76
|
+
```
|
77
|
+
|
78
|
+
yumに関するansibleのディレクトリは以下のような構成になっていました。
|
79
|
+
epel.repoの内容を調べてみます。
|
80
|
+
|
81
|
+
└── yum
|
82
|
+
└── repos
|
83
|
+
├── files
|
84
|
+
│ ├── RPM-GPG-KEY-EPEL-6
|
85
|
+
│ └── epel.repo
|
86
|
+
└── tasks
|
87
|
+
└── main.yml
|
88
|
+
|
89
|
+
|
90
|
+
```txt
|
91
|
+
[epel]
|
92
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch
|
93
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
|
94
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
|
95
|
+
failovermethod=priority
|
96
|
+
enabled=1
|
97
|
+
gpgcheck=1
|
98
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
99
|
+
|
100
|
+
[epel-debuginfo]
|
101
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
|
102
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
|
103
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
|
104
|
+
failovermethod=priority
|
105
|
+
enabled=0
|
106
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
107
|
+
gpgcheck=1
|
108
|
+
|
109
|
+
[epel-source]
|
110
|
+
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
|
111
|
+
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
|
112
|
+
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
|
113
|
+
failovermethod=priority
|
114
|
+
enabled=0
|
115
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
116
|
+
gpgcheck=1
|
117
|
+
```
|
118
|
+
質問を載せておきながら申し訳ないです。
|
119
|
+
自己解決しましたら、その旨、追記させていただきます。
|