mg
181da3c38a
keepass vars playbook jenkins java jenkins in inventory Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#80 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
24 lines
449 B
YAML
24 lines
449 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
become: true
|
|
|
|
vars:
|
|
jenkins_http_port: 8081
|
|
|
|
pre_tasks:
|
|
- include_tasks: java-8.yml
|
|
|
|
roles:
|
|
- geerlingguy.java
|
|
- geerlingguy.jenkins
|
|
|
|
post_tasks:
|
|
- name: Ensure Jenkins is running on the specified port.
|
|
uri:
|
|
url: "http://127.0.0.1:{{ jenkins_http_port }}"
|
|
status_code: 200
|
|
register: result
|
|
until: result.status == 200
|
|
retries: 60
|
|
delay: 1
|