inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Jenkins를 이용한 CI/CD Pipeline 구축

Ansible 모듈 사용

패키지 설치 시 에러 해결방안 공유

814

이시연

작성한 질문수 1

0

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

명령어 두개 실행.

jenkins ansible kubernetes ci/cd sonarqube cicd

답변 1

0

Dowon Lee

정보 공유 감사합니다!!

내장형 톰캣일경우

0

27

2

git 에 강의내용에 필요한 파일들 존재하지 않음

0

91

2

젠킨스에 등록된..

0

102

2

yml 파일 db 접속정보 수정 후 배포 시 미반영

0

115

2

jdk 버전 17

0

85

2

섹션2 강의자료

0

107

2

DOCKER 이미지 PULL

0

268

1

36강 edowon0623/cicd-project-ansible이 호환이 안되는것 같아요

0

65

1

질문이 있습니다!!

0

72

1

exec /usr/local/tomcat/bin/catalina.sh: invalid argument 오류 해별법(공유)

1

207

4

m2 mac: ansible-server에서 container 실행 안됨

0

161

2

Jenkins와 k8s 연동과 관련한 질문입니다.

0

99

2

Ansible 과 연동에서 이미지 및 컨테이너 생성과 관련한 질문 드립니다.

0

177

2

맥북 실리콘칩 invalid argument 에러 해결 (수동 설치)

0

259

3

Docker Container에서 Tomcat 설치

0

225

2

ec2 여러대에서 각각 직접 설치 이유

0

155

1

P@ssw0rd 설정시기

0

152

2

ansible 원리

0

136

2

ansible 존재여부

0

120

2

젠킨스 빌드 성공후 shutdown

0

252

2

Docker Hub에 Push 무한 로딩

0

130

2

컨테이너에 ssh로 접속 비밀번호 불일치

0

122

1

maven project 오류

0

120

2

엔서블을 이용하여 톰캣 이미지 배포 후, 되돌리는 방법

0

151

2