when i try to install jenkins using ansible on my cent-os machine using yum command its taking so much time to install jenkins and its failing because of timeout
steps to reproduce:
when you download jenkins using following method then you will get /etc/yum.repos.d/jenkins.repo file
- name: Download jenkins repository
inside /etc/yum.repos.d/jenkins.repo file i see following content:
now when you install jenkins in centos using
$ yum install jenkins
then it will look into baseurl=http://pkg.jenkins.io/redhat-stable repo and connection is really slow here even my internet speed is fast. i see download package speed is 1-3 byte package per second.
when you download url: http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo then in /etc/yum.repos.d/jenkins.repo file it should be https
so /etc/yum.repos.d/jenkins.repo will look like:
and you will get installation speed so fast.
i think somebody intercepting network when you use http in base url. so please change it to https.