On Mon, Oct 19, 2020 at 04:54:50PM -0400, Cleber Rosa wrote: > On Mon, Oct 19, 2020 at 12:26:10PM +0200, Erik Skultety wrote: > > On Sun, Oct 18, 2020 at 09:50:02PM -0400, Cleber Rosa wrote: > > > + > > > + - name: Checks the availability of official gitlab-runner builds in > > > the archive > > > + uri: > > > + url: https://s3.amazonaws.com/gitlab-runner-downloads/v{{ > > > gitlab_runner_version }}/binaries/gitlab-runner-linux-386 > > > + method: HEAD > > > + status_code: > > > + - 200 > > > + - 403 > > > > Why is 403 an acceptable success status code? > > > > I missed this question in my last reply, sorry. > > s3 will throw a 403 if the URI doesn't exist... and we don't want to fail > the playbook because of that, given that we'll attempt the fallback > repo defined in vars.yml{,.template}.
Right, forgot about the repo in vars.yml fallback, thanks for explaining. Regards, Erik