When setting a gitlab_runner_runner.cache_dir config in defaults/main.yml. When using a docker executor, the task "Ensure directory permissions" fails because gitlab_runner_runtime_{owner,group} is set to gitlab-runner, when it should be root for docker executors.
Propose adding a task in main-container.yml:
- name: (Container) Set Runtime group and owner
set_fact:
gitlab_runner_runtime_owner: root
gitlab_runner_runtime_group: root
Sorry, my mistake, gitlab_runner_runtime_{owner,group} refer to user/group for which gitlab-runner was installed. For docker executors, this is where the bind mount for cache_dir resides
When setting a
gitlab_runner_runner.cache_dir
config indefaults/main.yml
. When using a docker executor, the task "Ensure directory permissions" fails becausegitlab_runner_runtime_{owner,group}
is set togitlab-runner
, when it should beroot
for docker executors.Propose adding a task in
main-container.yml
: