Izveden refactor iz taskov v role

This commit is contained in:
Polz 2023-09-11 22:30:48 +02:00
parent 747438dedf
commit a35460a57b
317 changed files with 2761 additions and 50 deletions

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,8 @@
- name: Install JavaFX
apt:
name: openjfx
state: latest
- name: Install JavaFX source
apt:
name: openjfx-source
state: latest

View file

@ -0,0 +1,20 @@
- 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