From c9a0df80c3b6286c79ff01c3c189a419c822465d Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Fri, 29 Sep 2023 18:15:24 +0200 Subject: [PATCH] update handlers & config.toml dest file --- handlers/main.yml | 9 ++++----- tasks/gitlab-runner.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 4e44a87..37e2fba 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -49,9 +49,8 @@ tags: ['docker_gitlab'] - name: 'gitlab-runner-restart' - docker_container: - name: gitlab-runner - restart: yes - when: - - 'not register_docker_container_gitlab_runner.changed' + systemd: + name: docker-compose@gitlab-runner + state: restarted + ignore_errors: '{{ ansible_check_mode }}' tags: ['docker_gitlab-runner'] diff --git a/tasks/gitlab-runner.yml b/tasks/gitlab-runner.yml index 720fc95..20c7990 100644 --- a/tasks/gitlab-runner.yml +++ b/tasks/gitlab-runner.yml @@ -35,7 +35,7 @@ - name: 'gitlab-runner | configure config.toml' copy: - dest: '{{ register_gitlab_runner_etc_gitlab_runner.ansible_facts.docker_volume.Mountpoint }}/config.toml' + dest: '/var/lib/docker/volumes/gitlab-runner__etc_gitlab-runner/_data/config.toml' mode: '0600' content: | concurrent = 1