From f22807b1361e7c8152e6bb021305bfdf7d22f2a7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 5 Oct 2022 07:49:01 +0000 Subject: [PATCH] winroom: add javafx --- roles/winroom/tasks/javafx.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/roles/winroom/tasks/javafx.yml b/roles/winroom/tasks/javafx.yml index 4640904..9bc5d80 100644 --- a/roles/winroom/tasks/javafx.yml +++ b/roles/winroom/tasks/javafx.yml @@ -1 +1,20 @@ -# TODO +- name: Check javafx install + win_find: + paths: "C:\\Program Files\\Java" + patterns: ['javafx-sdk-*'] + file_type: directory + register: install + +- when: install.matched == 0 + block: + - name: Download javafx + win_get_url: + url: https://download2.gluonhq.com/openjfx/19/openjfx-19_windows-x64_bin-sdk.zip + dest: C:\ + register: download + + - name: Install javafx + win_unzip: + src: "{{ download.dest }}" + dest: "%ProgramFiles%\\Java" + delete_archive: yes