blob: 748314add8b73e08bfc74c4e0e66534d92d0cfd6 (
plain) (
tree)
|
|
# 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"
|