From c2ba308f49e28a1326398d050fbc6e606cbed672 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Fri, 29 Sep 2023 18:05:53 +0200 Subject: [PATCH] update handlers --- handlers/main.yml | 4 ++-- tasks/gitlab-runner.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index d50c5cb..4e44a87 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -48,10 +48,10 @@ ignore_errors: '{{ ansible_check_mode }}' tags: ['docker_gitlab'] -- name: 'docker restart gitlab-runner' +- name: 'gitlab-runner-restart' docker_container: name: gitlab-runner restart: yes when: - 'not register_docker_container_gitlab_runner.changed' - tags: ['docker_gitlab_runner'] + tags: ['docker_gitlab-runner'] diff --git a/tasks/gitlab-runner.yml b/tasks/gitlab-runner.yml index 04b9900..bd15c30 100644 --- a/tasks/gitlab-runner.yml +++ b/tasks/gitlab-runner.yml @@ -58,7 +58,7 @@ volumes = ["/var/run/docker.sock:/var/run/docker.sock:rw", "/cache", "/builds:/builds"] shm_size = 0 pull_policy = ["always", "if-not-present"] - notify: 'docker restart gitlab-runner' + notify: 'gitlab-runner-restart' when: - 'gitlab_runner_register_token is defined' - 'register_gitlab_runner_register.json.token is defined'