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