small rework
This commit is contained in:
parent
525c41bc88
commit
319c3bfb1c
4 changed files with 27 additions and 6 deletions
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
|
||||
- name: restart jenkins
|
||||
service: name=jenkins state=restarted
|
||||
|
||||
# Avoid to use this one as it doesn't wait for Jenkins to be ready
|
||||
# and thus, next invocation of jenkins-cli may fail.
|
||||
- name: safe-restart jenkins
|
||||
shell: "{{ jenkins_cli_command }} safe-restart"
|
||||
|
||||
|
@ -10,5 +9,9 @@
|
|||
- name: safe-restart jenkins and wait
|
||||
import_tasks: roles/jenkins-php-v1/tasks/include_saferestartandwait.yml
|
||||
|
||||
# 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
|
||||
|
||||
- name: reload nginx
|
||||
service: name=nginx state=reloaded
|
||||
|
|
Reference in a new issue