debops / ansible-gitlab_runner

Manage GitLab Runner instances
GNU General Public License v3.0
20 stars 19 forks source link

APT Key registration failed for the default value #8

Open rosds opened 7 years ago

rosds commented 7 years ago

Hello guys, I was trying to run the role for provisioning a vagrant box. I used pretty much all the default values except obviously the gitlab token. Everything went fine till the "Add gitlab-runner APT key" task which returned a rather lengthy error "Error fetching key 1A4C919DB...".

This, I learned afterwards, was being cause by the default value for the apt_key id "hkp://pool.sks-keyservers.net".

This issue was fixed by specifying the port 80 for that URL. So, simply changing "hkp://pool.sks-keyservers.net" for "hkp://pool.sks-keyservers.net:80" in the id argument (line 56 of tasks/main.yml) fixed the problem for me.