From 25e50906ca0568b758e9f81443f53ffba5fe17b6 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 1 Jul 2020 13:49:09 +0200 Subject: [PATCH] Add task for installing java --- localhost.yml | 1 + roles/java/tasks/main.yml | 4 ++++ roles/java/tasks/openjdk-11.yml | 7 +++++++ roles/java/tasks/openjdk-8.yml | 7 +++++++ 4 files changed, 19 insertions(+) create mode 100644 roles/java/tasks/main.yml create mode 100644 roles/java/tasks/openjdk-11.yml create mode 100644 roles/java/tasks/openjdk-8.yml diff --git a/localhost.yml b/localhost.yml index d5e128e..afb4612 100644 --- a/localhost.yml +++ b/localhost.yml @@ -4,3 +4,4 @@ - dwm - ubuntu - docker + - java diff --git a/roles/java/tasks/main.yml b/roles/java/tasks/main.yml new file mode 100644 index 0000000..5e0e45d --- /dev/null +++ b/roles/java/tasks/main.yml @@ -0,0 +1,4 @@ +--- +- import_tasks: openjdk-8.yml + +- import_tasks: openjdk-11.yml diff --git a/roles/java/tasks/openjdk-11.yml b/roles/java/tasks/openjdk-11.yml new file mode 100644 index 0000000..d7b851a --- /dev/null +++ b/roles/java/tasks/openjdk-11.yml @@ -0,0 +1,7 @@ +--- +- name: install openjdk-11 from packages + become: yes + apt: + update_cache: yes + pkg: + - openjdk-8-jdk diff --git a/roles/java/tasks/openjdk-8.yml b/roles/java/tasks/openjdk-8.yml new file mode 100644 index 0000000..b2c48ca --- /dev/null +++ b/roles/java/tasks/openjdk-8.yml @@ -0,0 +1,7 @@ +--- +- name: install openjdk-8 from packages + become: yes + apt: + update_cache: yes + pkg: + - openjdk-8-jdk