패키지 설치 시 에러 해결방안 공유
810
1 asked
ansible all -m yum -a "name=httpd state=present" 실행 시 60번 에러와 77번 에러가 발생할 수 있습니다.
해당 에러 발생 시 해결방안 공유합니다.
case1) 60에러
[에러메시지]
172.17.0.3 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=container&content=centos [SSL certificate problem: self signed certificate in certificate chain]",
"rc": 1,
"results": []
}
[해결방안]
vi /etc/yum.conf
맨 아래에 sslverify=0 추가
case2) 77 에러
[에러메시지]
172.17.0.4 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=container&content=centos [error setting certificate verify locations:\n CAfile: /etc/pki/tls/certs/ca-bundle.crt\n CApath: none]",
"rc": 1,
"results": []
}
[해결방안]
위에 출력된 CAfile: /etc/pki/tls/certs/ca-bundle.crt 참조하여
rm -rf /etc/pki/tls/certs/ca-bundle.crt
yum reinstall -y ca-certificates
명령어 두개 실행.
Answer 1
git 에 강의내용에 필요한 파일들 존재하지 않음
0
84
2
젠킨스에 등록된..
0
98
2
yml 파일 db 접속정보 수정 후 배포 시 미반영
0
108
2
jdk 버전 17
0
81
2
섹션2 강의자료
0
103
2
DOCKER 이미지 PULL
0
266
1
36강 edowon0623/cicd-project-ansible이 호환이 안되는것 같아요
0
63
1
질문이 있습니다!!
0
68
1
exec /usr/local/tomcat/bin/catalina.sh: invalid argument 오류 해별법(공유)
1
203
4
m2 mac: ansible-server에서 container 실행 안됨
0
159
2
Jenkins와 k8s 연동과 관련한 질문입니다.
0
97
2
Ansible 과 연동에서 이미지 및 컨테이너 생성과 관련한 질문 드립니다.
0
176
2
맥북 실리콘칩 invalid argument 에러 해결 (수동 설치)
0
255
3
Docker Container에서 Tomcat 설치
0
221
2
ec2 여러대에서 각각 직접 설치 이유
0
154
1
P@ssw0rd 설정시기
0
147
2
ansible 원리
0
135
2
ansible 존재여부
0
116
2
젠킨스 빌드 성공후 shutdown
0
249
2
Docker Hub에 Push 무한 로딩
0
120
2
컨테이너에 ssh로 접속 비밀번호 불일치
0
117
1
maven project 오류
0
118
2
엔서블을 이용하여 톰캣 이미지 배포 후, 되돌리는 방법
0
150
2
쿠버네티스 이용시, api gateway 와 service discovery 역할
0
270
2

