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>
21 lines
413 B
YAML
21 lines
413 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
become: true
|
|
|
|
pre_tasks:
|
|
- include_tasks: java-8.yml
|
|
|
|
- include_tasks: java-11.yml
|
|
when:
|
|
- ansible_distribution == 'Debian'
|
|
- ansible_distribution_major_version == '10'
|
|
|
|
roles:
|
|
- role: geerlingguy.java
|
|
- role: geerlingguy.jenkins
|
|
|
|
post_tasks:
|
|
- name: Check if Jenkins is running.
|
|
uri:
|
|
url: "http://127.0.0.1:8080/"
|