update handlers

This commit is contained in:
Ludovic Cartier 2023-09-29 18:05:53 +02:00
parent 2f01747638
commit c2ba308f49
2 changed files with 3 additions and 3 deletions

View File

@ -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']

View File

@ -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'