blob: 748314add8b73e08bfc74c4e0e66534d92d0cfd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# java ~~ roles/java/tasks/main.yml
# install and configure java runtime environment
---
- name: install java for OpenBSD
package: name="{{ java_package_openbsd }}" state=present
when: ansible_distribution == "OpenBSD"
- name: install java for Alpine
package: name="{{ java_package_alpine }}" state=present
when: ansible_distribution == "Alpine"
- name: add java to /usr path
file:
src: /usr/local/jdk-11/bin/java
dest: /usr/local/bin/java
state: link
owner: "{{ user_root }}"
group: "{{ group_root }}"
when: ansible_distribution == "OpenBSD"
|