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'