diff --git a/roles/web-app-gitlab/meta/volumes.yml b/roles/web-app-gitlab/meta/volumes.yml index 66954ac307..92f646b71a 100644 --- a/roles/web-app-gitlab/meta/volumes.yml +++ b/roles/web-app-gitlab/meta/volumes.yml @@ -180,6 +180,17 @@ shell_secret: target: /srv/gitlab-secrets/.gitlab_shell_secret - service: gitaly target: /etc/gitaly/.gitlab_shell_secret +shell_path_secret: + type: secret + source: "{{ [lookup('container', 'web-app-gitlab', 'directories.config'), 'secrets', '.gitlab_shell_secret'] | path_join }}" + mode: "0444" + mounts: + - service: webservice + target: &rails_shell_path_secret_target /home/git/gitlab-shell/.gitlab_shell_secret + - service: sidekiq + target: *rails_shell_path_secret_target + - service: migrations + target: *rails_shell_path_secret_target workhorse_secret: type: secret source: "{{ [lookup('container', 'web-app-gitlab', 'directories.config'), 'secrets', '.gitlab_workhorse_secret'] | path_join }}" diff --git a/roles/web-app-gitlab/tasks/00_core.yml b/roles/web-app-gitlab/tasks/00_core.yml index db498847bb..ce8f53e201 100644 --- a/roles/web-app-gitlab/tasks/00_core.yml +++ b/roles/web-app-gitlab/tasks/00_core.yml @@ -40,5 +40,8 @@ include_tasks: utils/mcp.yml when: GITLAB_MCP_ENABLED | bool +- name: "🔎 Wait for the GitLab services the MCP flush recreated" + include_tasks: 02_wait.yml + - name: "🎨 Converge the GitLab appearance" include_tasks: 03_design.yml diff --git a/roles/web-app-gitlab/tasks/03_design.yml b/roles/web-app-gitlab/tasks/03_design.yml index 3e101c35cf..e67be83170 100644 --- a/roles/web-app-gitlab/tasks/03_design.yml +++ b/roles/web-app-gitlab/tasks/03_design.yml @@ -24,11 +24,6 @@ register: gitlab_design_files when: design_branding.logo is string -- name: "🔎 Wait until the GitLab webservice is healthy" - ansible.builtin.include_tasks: 02_wait/wait_one.yml - vars: - wait_container: "{{ GITLAB_WEBSERVICE_SERVICE_NAME }}" - - name: "🔍 Resolve the GitLab webservice for the appearance" ansible.builtin.include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/swarm/resolve_host_cid.yml') }}" vars: