Add task for installing java
This commit is contained in:
parent
f02288523b
commit
25e50906ca
@ -4,3 +4,4 @@
|
|||||||
- dwm
|
- dwm
|
||||||
- ubuntu
|
- ubuntu
|
||||||
- docker
|
- docker
|
||||||
|
- java
|
||||||
|
4
roles/java/tasks/main.yml
Normal file
4
roles/java/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- import_tasks: openjdk-8.yml
|
||||||
|
|
||||||
|
- import_tasks: openjdk-11.yml
|
7
roles/java/tasks/openjdk-11.yml
Normal file
7
roles/java/tasks/openjdk-11.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: install openjdk-11 from packages
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
pkg:
|
||||||
|
- openjdk-8-jdk
|
7
roles/java/tasks/openjdk-8.yml
Normal file
7
roles/java/tasks/openjdk-8.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: install openjdk-8 from packages
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
pkg:
|
||||||
|
- openjdk-8-jdk
|
Loading…
Reference in New Issue
Block a user