1
0
Fork 0
This repository has been archived on 2023-11-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ansible-jenkins-php-v1/roles/jenkins-php-v1/handlers/main.yml

18 lines
631 B
YAML
Raw Normal View History

2020-01-17 23:35:15 +01:00
---
2020-03-15 00:43:53 +01:00
# Avoid to use this one as it doesn't wait for Jenkins to be ready
# and thus, next invocation of jenkins-cli may fail.
2020-01-17 23:35:15 +01:00
- name: safe-restart jenkins
shell: "{{ jenkins_cli_command }} safe-restart"
# As of now (Ansible 2.7.7), Ansible doesn't support blocks in handlers
- name: safe-restart jenkins and wait
import_tasks: roles/jenkins-php-v1/tasks/include_saferestartandwait.yml
2020-01-18 01:04:37 +01:00
2020-03-15 00:43:53 +01:00
# As of now (Ansible 2.7.7), Ansible doesn't support blocks in handlers
- name: system restart jenkins and wait
import_tasks: roles/jenkins-php-v1/tasks/include_restartandwait.yml
2020-01-18 01:04:37 +01:00
- name: reload nginx
service: name=nginx state=reloaded