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/tasks/include_restartandwait.yml

17 lines
416 B
YAML
Raw Normal View History

2020-03-15 00:43:53 +01:00
---
- name: system-restart jenkins and wait (include)
block:
- name: restart jenkins
service: name=jenkins state=restarted
- name: Loop until Jenkins is available
get_url:
url: "http://localhost:8080/login"
dest: "/dev/null"
force: True
register: result
until: result.status_code is defined and result.status_code == 200
retries: 100
delay: 5
changed_when: False