From 3b801ad089f1f9f8516f0df7add9bdba4d5a5e4f Mon Sep 17 00:00:00 2001 From: polz Date: Wed, 25 Oct 2023 21:41:00 +0200 Subject: [PATCH] =?UTF-8?q?Popravki=20ob=20za=C4=8Detku=20leta=20-=20prede?= =?UTF-8?q?lani=20bolj=20ali=20manj=20vsi=20programi=20in=20predmeti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/NDN-63729/meta/main.yml | 1 + roles/OIS-63215/meta/main.yml | 7 + roles/OR-63717/meta/main.yml | 1 + roles/RA-63703/meta/main.yml | 6 + roles/SP-63255/meta/main.yml | 1 + roles/SU-63519/meta/main.yml | 8 +- roles/ad_joined/tasks/main.yml | 4 + roles/ad_joined/tasks/main_lin.yml | 34 ++++ roles/ad_joined/tasks/main_win.yml | 49 ++++++ roles/ad_joined/templates/sssd.conf | 31 ++++ roles/algobuilder/tasks/main.yml | 4 + roles/algobuilder/tasks/main_lin.yml | 4 + roles/algobuilder/tasks/main_win.yml | 30 ++++ roles/android_studio/meta/main.yml | 2 + .../tasks/androidsdk_packages.yml | 29 +++ roles/android_studio/tasks/main_lin.yml | 24 +++ roles/android_studio/tasks/main_win.yml | 10 +- roles/arduino/tasks/main_lin.yml | 17 +- roles/arduino/tasks/main_win.yml | 11 +- roles/c_development/tasks/main_win.yml | 5 + roles/chrome/tasks/main_lin.yml | 4 +- roles/chrome/tasks/main_win.yml | 1 + roles/cp2102_driver/tasks/main.yml | 4 + roles/cp2102_driver/tasks/main_lin.yml | 3 + roles/cp2102_driver/tasks/main_win.yml | 3 + roles/eclipse/tasks/main_win.yml | 3 +- roles/fri_base/meta/main.yml | 1 + roles/fri_base/tasks/main.yml | 8 +- roles/fri_base/tasks/main_lin.yml | 27 +-- roles/fri_base/tasks/main_win.yml | 31 +++- roles/jdk/tasks/main_lin.yml | 9 + roles/jdk/tasks/main_win.yml | 21 +++ roles/jupyter/meta/main.yml | 2 + roles/linroom_ad/templates/sssd.conf | 1 + roles/matlab/files/matlab.desktop | 10 ++ roles/matlab/meta/main.yml | 2 + roles/matlab/tasks/main_lin.yml | 76 +++++++- roles/matlab/tasks/main_win.yml | 19 +- roles/matlab/templates/installer_input.txt | 157 +++++++++++++++++ roles/matlab/templates/matlab.desktop | 10 ++ roles/matlab/templates/network.lic | 2 + roles/msys2/tasks/main_win.yml | 8 +- roles/mysql-odbc-connector/tasks/main_win.yml | 18 +- roles/mysql_workbench/tasks/main_lin.yml | 7 +- roles/mysql_workbench/tasks/main_win.yml | 9 +- roles/netbeans/tasks/main_win.yml | 2 +- roles/nodejs/tasks/main_lin.yml | 8 +- roles/nodejs/tasks/main_win.yml | 4 + roles/notepad++/tasks/main_lin.yml | 8 +- roles/notepad++/tasks/main_win.yml | 9 + roles/octave/tasks/main_lin.yml | 5 +- roles/pelles-c/files/pelles-c.desktop | 10 ++ roles/pelles-c/files/pelles-c.png | Bin 0 -> 5764 bytes roles/pelles-c/tasks/main_lin.yml | 18 ++ roles/powerdesigner/tasks/main_lin.yml | 16 +- roles/powerdesigner/tasks/main_win.yml | 5 +- roles/powerdesigner/templates/setup.iss | 165 ++++++++++++++++++ roles/projectlibre/tasks/main_win.yml | 3 +- roles/pulseview/tasks/main.yml | 4 + roles/pulseview/tasks/main_lin.yml | 4 + roles/pulseview/tasks/main_win.yml | 16 ++ roles/putty/tasks/main.yml | 4 + roles/putty/tasks/main_lin.yml | 8 + roles/putty/tasks/main_win.yml | 3 + roles/pytorch/tasks/main.yml | 4 + roles/pytorch/tasks/main_lin.yml | 8 + roles/pytorch/tasks/main_win.yml | 2 + roles/rstudio/tasks/main_win.yml | 1 + roles/scipy/tasks/main.yml | 4 + roles/scipy/tasks/main_lin.yml | 7 + roles/scipy/tasks/main_win.yml | 3 + roles/sifive/tasks/main_lin.yml | 19 ++ roles/sifive/tasks/main_win.yml | 21 +++ roles/smlnj/tasks/main_win.yml | 7 + roles/solidworks/tasks/main_win.yml | 5 + roles/statsmodels/tasks/main.yml | 4 + roles/statsmodels/tasks/main_lin.yml | 6 + roles/statsmodels/tasks/main_win.yml | 3 + roles/stm32cube/tasks/main_lin.yml | 29 +++ roles/stm32cube/tasks/main_win.yml | 85 +++++++-- roles/stm32duino/meta/main.yml | 2 + roles/stm32duino/tasks/main.yml | 4 + roles/stm32duino/tasks/main_lin.yml | 13 ++ roles/stm32duino/tasks/main_win.yml | 8 + roles/tensorflow/tasks/main.yml | 4 + roles/tensorflow/tasks/main_lin.yml | 4 + roles/tensorflow/tasks/main_win.yml | 2 + roles/vscode/tasks/vscode_extensions.yml | 8 +- roles/webstorm/tasks/main.yml | 4 + roles/webstorm/tasks/main_lin.yml | 15 ++ roles/webstorm/tasks/main_win.yml | 12 ++ roles/wget/tasks/main.yml | 4 + roles/wget/tasks/main_lin.yml | 4 + roles/wget/tasks/main_win.yml | 3 + roles/xgboost/tasks/main.yml | 4 + roles/xgboost/tasks/main_lin.yml | 7 + roles/xgboost/tasks/main_win.yml | 3 + 97 files changed, 1221 insertions(+), 94 deletions(-) create mode 100644 roles/OIS-63215/meta/main.yml create mode 100644 roles/ad_joined/tasks/main.yml create mode 100644 roles/ad_joined/tasks/main_lin.yml create mode 100644 roles/ad_joined/tasks/main_win.yml create mode 100644 roles/ad_joined/templates/sssd.conf create mode 100644 roles/algobuilder/tasks/main.yml create mode 100644 roles/algobuilder/tasks/main_lin.yml create mode 100644 roles/algobuilder/tasks/main_win.yml create mode 100644 roles/android_studio/meta/main.yml create mode 100644 roles/android_studio/tasks/androidsdk_packages.yml create mode 100644 roles/cp2102_driver/tasks/main.yml create mode 100644 roles/cp2102_driver/tasks/main_lin.yml create mode 100644 roles/cp2102_driver/tasks/main_win.yml create mode 100644 roles/jupyter/meta/main.yml create mode 100644 roles/matlab/files/matlab.desktop create mode 100644 roles/matlab/meta/main.yml create mode 100644 roles/matlab/templates/installer_input.txt create mode 100644 roles/matlab/templates/matlab.desktop create mode 100644 roles/matlab/templates/network.lic create mode 100644 roles/pelles-c/files/pelles-c.desktop create mode 100644 roles/pelles-c/files/pelles-c.png create mode 100755 roles/powerdesigner/templates/setup.iss create mode 100644 roles/pulseview/tasks/main.yml create mode 100644 roles/pulseview/tasks/main_lin.yml create mode 100644 roles/pulseview/tasks/main_win.yml create mode 100644 roles/putty/tasks/main.yml create mode 100644 roles/putty/tasks/main_lin.yml create mode 100644 roles/putty/tasks/main_win.yml create mode 100644 roles/pytorch/tasks/main.yml create mode 100644 roles/pytorch/tasks/main_lin.yml create mode 100644 roles/pytorch/tasks/main_win.yml create mode 100644 roles/scipy/tasks/main.yml create mode 100644 roles/scipy/tasks/main_lin.yml create mode 100644 roles/scipy/tasks/main_win.yml create mode 100644 roles/statsmodels/tasks/main.yml create mode 100644 roles/statsmodels/tasks/main_lin.yml create mode 100644 roles/statsmodels/tasks/main_win.yml create mode 100644 roles/stm32duino/meta/main.yml create mode 100644 roles/stm32duino/tasks/main.yml create mode 100644 roles/stm32duino/tasks/main_lin.yml create mode 100644 roles/stm32duino/tasks/main_win.yml create mode 100644 roles/tensorflow/tasks/main.yml create mode 100644 roles/tensorflow/tasks/main_lin.yml create mode 100644 roles/tensorflow/tasks/main_win.yml create mode 100644 roles/webstorm/tasks/main.yml create mode 100644 roles/webstorm/tasks/main_lin.yml create mode 100644 roles/webstorm/tasks/main_win.yml create mode 100644 roles/wget/tasks/main.yml create mode 100644 roles/wget/tasks/main_lin.yml create mode 100644 roles/wget/tasks/main_win.yml create mode 100644 roles/xgboost/tasks/main.yml create mode 100644 roles/xgboost/tasks/main_lin.yml create mode 100644 roles/xgboost/tasks/main_win.yml diff --git a/roles/NDN-63729/meta/main.yml b/roles/NDN-63729/meta/main.yml index 1c5c3d5..be198ec 100644 --- a/roles/NDN-63729/meta/main.yml +++ b/roles/NDN-63729/meta/main.yml @@ -6,3 +6,4 @@ # Windows, Vivado 2022.1 dependencies: - role: vivado + - role: cp210x-vcp-drivers-win10 diff --git a/roles/OIS-63215/meta/main.yml b/roles/OIS-63215/meta/main.yml new file mode 100644 index 0000000..b193583 --- /dev/null +++ b/roles/OIS-63215/meta/main.yml @@ -0,0 +1,7 @@ +# Osnove Informacijskih Sistemov +# dejan.lavbic@fri.uni-lj.si +# git, docker, Node.js + npm, Visual Studio Code +dependencies: + - role: git + - role: docker + - role: nodejs diff --git a/roles/OR-63717/meta/main.yml b/roles/OR-63717/meta/main.yml index df14b23..70b9078 100644 --- a/roles/OR-63717/meta/main.yml +++ b/roles/OR-63717/meta/main.yml @@ -4,6 +4,7 @@ dependencies: - role: logisim - role: stm32cube + - role: stm32duino - role: ninja - role: cmake - role: gcc-arm diff --git a/roles/RA-63703/meta/main.yml b/roles/RA-63703/meta/main.yml index eccd66c..e4cfb9d 100644 --- a/roles/RA-63703/meta/main.yml +++ b/roles/RA-63703/meta/main.yml @@ -3,5 +3,11 @@ # Windows, RAVINOR, CubeIDE + QEMU Embedded plugin, WinIdea 9.21 + GCC + QEMU, WinIdea 9.12.256 (FRISMS kompatibilna), Visual2 dependencies: - role: stm32cube + - role: stm32duino - role: winidea + - role: winidea-frisms + - role: git - role: visual2 + - role: algobuilder + - role: putty + - role: pulseview diff --git a/roles/SP-63255/meta/main.yml b/roles/SP-63255/meta/main.yml index 78247ce..404a978 100644 --- a/roles/SP-63255/meta/main.yml +++ b/roles/SP-63255/meta/main.yml @@ -5,3 +5,4 @@ dependencies: - role: git - role: docker - role: nodejs + - role: webstorm diff --git a/roles/SU-63519/meta/main.yml b/roles/SU-63519/meta/main.yml index 054ffc6..c1f84bf 100644 --- a/roles/SU-63519/meta/main.yml +++ b/roles/SU-63519/meta/main.yml @@ -2,4 +2,10 @@ # matej.piculin@fri.uni-lj.si, Petar.Vracar@fri.uni-lj.si # Windows, R, RStudio dependencies: - - role: rstudio + - role: python3 + - role: pandas + - role: scipy + - role: xgboost + - role: statsmodels + - role: tensorflow + - role: statsmodels diff --git a/roles/ad_joined/tasks/main.yml b/roles/ad_joined/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/ad_joined/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/ad_joined/tasks/main_lin.yml b/roles/ad_joined/tasks/main_lin.yml new file mode 100644 index 0000000..d1cadbb --- /dev/null +++ b/roles/ad_joined/tasks/main_lin.yml @@ -0,0 +1,34 @@ +- name: Enable create homedir on login + command: pam-auth-update --enable mkhomedir + become: true +- name: Check whether we already joined + command: /bin/bash -c "/usr/sbin/realm list" + register: realm_list_results + - name: Set OU + set_fact: + ou_path: "OU={{locations[0]}},OU=Ucilnice" + - name: Show state + debug: + msg: "Host: {{inventory_hostname}}, OU: {{ou_path}}" + # - import_tasks: ne_sysprep.yaml + - name: "Rename" + # Racunalnik najprej preimenujmo, da ne bosta v domeni obenem 2 z istim imenom + hostname: + name: "{{inventory_hostname}}" + register: hostname_res + +- name: Join using realmd + expect: + command: realm join --user={{ad_join_user}} --computer-ou={{ou_path}} FRI1.UNI-LJ.SI + responses: + (?i)Password: "{{ad_join_password}}" + ignore_errors: yes + when: realm_list_results.stdout == "" + +- name: Copy sssd config + template: + src: sssd.conf + dest: "/etc/sssd/sssd.conf" + owner: root + mode: 0600 + diff --git a/roles/ad_joined/tasks/main_win.yml b/roles/ad_joined/tasks/main_win.yml new file mode 100644 index 0000000..79481e3 --- /dev/null +++ b/roles/ad_joined/tasks/main_win.yml @@ -0,0 +1,49 @@ +- name: Set OU + set_fact: + ou_path: "OU={{locations[0]}},OU=Ucilnice,DC=fri1,DC=uni-lj,DC=si" +- name: "Rename" + # Racunalnik najprej preimenujmo, da ne bosta v domeni obenem 2 z istim imenom + win_hostname: + name: "{{inventory_hostname}}" + register: hostname_res +- name: "Reboot after hostname change" + win_reboot: + when: hostname_res.reboot_required +- name: Stop Windows Update Service + win_service: + name: wuauserv + state: stopped +- name: Clear WSUS ID from registry + win_regedit: + path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate + name: "{{item}}" + state: absent + delete_key: yes + with_items: + - PingID + - AccountDomainSid + - SusClientId + - SusClientIDValidation +- name: Start Windows Update Service + win_service: + name: wuauserv + state: started +- name: "Join domain" + win_domain_membership: + domain_admin_user: "{{adjoin_user}}" + domain_admin_password: "{{adjoin_password}}" + dns_domain_name: "{{domain_name}}" + domain_ou_path: "{{ou_path}}" + hostname: "{{inventory_hostname}}" + state: domain + register: domain_state +- name: Reset WSUS authorization + win_command: wuauclt.exe /resetauthorization /detectnow + ignore_errors: yes +- name: Update windows + win_command: wuauclt.exe /updatenow + ignore_errors: yes +- name: Reboot + win_command: "shutdown /r" + when: domain_state.reboot_required + diff --git a/roles/ad_joined/templates/sssd.conf b/roles/ad_joined/templates/sssd.conf new file mode 100644 index 0000000..117793c --- /dev/null +++ b/roles/ad_joined/templates/sssd.conf @@ -0,0 +1,31 @@ +[sssd] +config_file_version = 2 +domains = fri1.uni-lj.si +enable_files_domain = False +services = nss, pam + +[nss] +filtered_groups = root +filtered_users = root +reconnection_retries = 3 + +[pam] +reconnection_retries = 3 + +[domain/fri1.uni-lj.si] +ad_domain = fri1.uni-lj.si +ad_server = dcv1fri1.fri1.uni-lj.si,dcv2fri1.fri1.uni-lj.si +ad_maximum_machine_account_password_age = 0 +ad_gpo_access_control = permissive +ad_enabled_domains = fri1.uni-lj.si, student.uni-lj.si, fkkt1.uni-lj.si, ef1.uni-lj.si, fe1.uni-lj.si, ff.uni-lj.si, fmf.uni-lj.si, fu.uni-lj.si, pef.uni-lj.si +krb5_realm = FRI1.UNI-LJ.SI +ad_gpo_ignore_unreadable = True +realmd_tags = manages-system joined-with-adcli +cache_credentials = True +id_provider = ad +krb5_store_password_if_offline = True +default_shell = /bin/bash +ldap_id_mapping = True +use_fully_qualified_names = True +fallback_homedir = /home/%u@%d +access_provider = ad diff --git a/roles/algobuilder/tasks/main.yml b/roles/algobuilder/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/algobuilder/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/algobuilder/tasks/main_lin.yml b/roles/algobuilder/tasks/main_lin.yml new file mode 100644 index 0000000..24f0d0e --- /dev/null +++ b/roles/algobuilder/tasks/main_lin.yml @@ -0,0 +1,4 @@ +- name: Do not install AlgoBuilder + debug: + msg: "Do not install AlgoBuilder on Linux" + diff --git a/roles/algobuilder/tasks/main_win.yml b/roles/algobuilder/tasks/main_win.yml new file mode 100644 index 0000000..3ccb74c --- /dev/null +++ b/roles/algobuilder/tasks/main_win.yml @@ -0,0 +1,30 @@ +# TODO check install status +- name: Check AlgoBuilder install status + win_stat: + path: C:\Program Files (x86)\Thonny\thonny.exe + register: file + +- when: not file.stat.exists + block: + - name: Download AlgoBuilder + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EZhqHxJoAfdEjdlMu0uGWGcBOqrT0vTVv2_nhynWZ3fOwQ?e=rcskhq&download=1" -O C:\AlgoBuilderSuite.exe + args: + creates: C:\AlgoBuilderSuite.exe + #win_get_url: + # follow_redirects: all + # http_agent: Wget/1.21.3 + # url: https://unilj-my.sharepoint.com/:u:/r/personal/rozman_fri1_uni-lj_si/Documents/Arhiv/ImportantFiles/AlgoBuilderSuite.exe?download=1 + # dest: C:\AlgoBuilderSuite.exe + #register: download + + - name: Install AlgoBuilder + win_package: + path: C:\AlgoBuilderSuite.exe + # path: "{{ download.dest }}" + arguments: /Verysilent /AllUsers + + - name: Remove temporary files + win_file: + path: C:\AlgoBuilderSuite.exe + # path: "{{ download.dest }}" + state: absent diff --git a/roles/android_studio/meta/main.yml b/roles/android_studio/meta/main.yml new file mode 100644 index 0000000..44dfcc3 --- /dev/null +++ b/roles/android_studio/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: msys2 diff --git a/roles/android_studio/tasks/androidsdk_packages.yml b/roles/android_studio/tasks/androidsdk_packages.yml new file mode 100644 index 0000000..da206a7 --- /dev/null +++ b/roles/android_studio/tasks/androidsdk_packages.yml @@ -0,0 +1,29 @@ +AndroidSDK_packages: + - add-ons;addon-google_apis-google-24 + - build-tools;34.0.0-rc3 + - cmake;3.22.1 + - cmdline-tools;latest + - emulator + - extras;android;m2repository + - extras;google;auto + - extras;google;google_play_services + - extras;google;instantapps + - extras;google;m2repository + - extras;google;market_apk_expansion + - extras;google;market_licensing + - extras;google;simulators + - extras;google;webdriver + - extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2 + - extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2 + - ndk-bundle + - patcher;v4 + - platform-tools + - platforms;android-34 + - platforms;android-32 + - platforms;android-UpsideDownCakePrivacySandbox + - skiaparser;3 + - sources;android-34 + - system-images;android-34;google_apis;x86_64 + - system-images;android-32;google_apis;x86_64 + - system-images;android-34;google_apis_playstore;x86_64 + - system-images;android-UpsideDownCakePrivacySandbox;google_apis_playstore;x86_64 diff --git a/roles/android_studio/tasks/main_lin.yml b/roles/android_studio/tasks/main_lin.yml index da7ceee..d664992 100644 --- a/roles/android_studio/tasks/main_lin.yml +++ b/roles/android_studio/tasks/main_lin.yml @@ -11,3 +11,27 @@ creates: /opt/Android_Studio/android-studio/build.txt dest: /opt/Android_Studio remote_src: yes + + - name: Install Android Studio Command line tools + block: + - name: Create destination for Android Studio Command line tools + file: + path: /opt/Android_SDK + state: directory + - name: Download and unpack Android Studio Command line tools + unarchive: + # src: https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.3.1.16/android-studio-2021.3.1.16-linux.tar.gz + src: https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip + creates: /opt/Android_SDK/cmdline-tools/lib/README + dest: /opt/Android_SDK + remote_src: yes + + - name: Include Android SDK packages + include_vars: androidsdk_packages.yml + + - name: Accept Android SDK package licenses + shell: yes | /opt/Android_SDK/cmdline-tools/bin/sdkmanager --sdk_root=/opt/Android_SDK --licenses + + - name: Install Android SDK packages + command: /opt/Android_SDK/cmdline-tools/bin/sdkmanager --sdk_root=/opt/Android_SDK --install "{{ item }}" + loop: "{{ AndroidSDK_packages }}" diff --git a/roles/android_studio/tasks/main_win.yml b/roles/android_studio/tasks/main_win.yml index 6a85812..059c428 100644 --- a/roles/android_studio/tasks/main_win.yml +++ b/roles/android_studio/tasks/main_win.yml @@ -25,9 +25,17 @@ - name: Accept Android SDK licenses win_shell: sh -c "yes | /c/android-sdk/cmdline-tools/cmdline-tools/bin/sdkmanager.bat --licenses" +- name: Include Android SDK packages + include_vars: androidsdk_packages.yml + - name: Install Android SDK win_shell: | - {{ sdk_path }}\\cmdline-tools\\cmdline-tools\\bin\\sdkmanager --install "build-tools;33.0.0" "cmdline-tools;latest" "emulator" "ndk-bundle" "ndk;25.1.8937393" "platform-tools" "platforms;android-33" "sources;android-33" "system-images;android-33;google_apis;arm64-v8a" "system-images;android-33;google_apis;x86_64" + {{ sdk_path }}\\cmdline-tools\\cmdline-tools\\bin\\sdkmanager --install "{{ item }}" + loop: "{{ AndroidSDK_packages }}" + + +# {{ sdk_path }}\\cmdline-tools\\cmdline-tools\\bin\\sdkmanager --install "{{ AndroidSDK_packages | join(' ') }}" +# {{ sdk_path }}\\cmdline-tools\\cmdline-tools\\bin\\sdkmanager --install "build-tools;33.0.0" "cmdline-tools;latest" "emulator" "ndk-bundle" "ndk;25.1.8937393" "platform-tools" "platforms;android-33" "sources;android-33" "system-images;android-33;google_apis;arm64-v8a" "system-images;android-33;google_apis;x86_64" - name: Install Android Studio win_package: diff --git a/roles/arduino/tasks/main_lin.yml b/roles/arduino/tasks/main_lin.yml index 1a7c6f5..de9d922 100644 --- a/roles/arduino/tasks/main_lin.yml +++ b/roles/arduino/tasks/main_lin.yml @@ -5,6 +5,21 @@ - name: unpack Arduino unarchive: - src: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Linux_64bit.zip + src: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Linux_64bit.zip dest: /opt/Arduino remote_src: yes + +- name: unpack Arduino-cli + unarchive: + src: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz + dest: /opt/Arduino + remote_src: yes + creates: /opt/Arduino/arduino-cli + +- name: Add symlink to /usr/local/bin + file: + src: /opt/Arduino/arduino-cli + path: /usr/local/bin/arduino-cli + state: link + + diff --git a/roles/arduino/tasks/main_win.yml b/roles/arduino/tasks/main_win.yml index 566f229..a607b37 100644 --- a/roles/arduino/tasks/main_win.yml +++ b/roles/arduino/tasks/main_win.yml @@ -1,7 +1,16 @@ - name: Install Arduino IDE win_package: - path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.exe + # path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.exe + path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.exe arguments: /S /AllUsers creates_path: "%ProgramFiles%\\Arduino IDE\\Arduino IDE.exe" +- name: Install Arduino-cli + win_package: + # path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.exe + path: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip + arguments: /S /AllUsers + # creates_path: "%ProgramFiles%\\Arduino IDE\\Arduino IDE.exe" + + # TODO check if anything else is needed (esp8266com)? diff --git a/roles/c_development/tasks/main_win.yml b/roles/c_development/tasks/main_win.yml index 88cfb73..1d8c75c 100644 --- a/roles/c_development/tasks/main_win.yml +++ b/roles/c_development/tasks/main_win.yml @@ -1,3 +1,8 @@ - name: Do not install C development tools debug: msg: "Do not install C development tools" + +- name: Install MinGW + win_chocolatey: + name: mingw + state: latest diff --git a/roles/chrome/tasks/main_lin.yml b/roles/chrome/tasks/main_lin.yml index 21a141a..548ace7 100644 --- a/roles/chrome/tasks/main_lin.yml +++ b/roles/chrome/tasks/main_lin.yml @@ -1,4 +1,4 @@ -- name: Do NOT install Chrome +- name: Install Chromium instead of Chrome apt: - name: chromium + name: chromium-browser state: latest diff --git a/roles/chrome/tasks/main_win.yml b/roles/chrome/tasks/main_win.yml index 221c6ce..41368c5 100644 --- a/roles/chrome/tasks/main_win.yml +++ b/roles/chrome/tasks/main_win.yml @@ -1,6 +1,7 @@ - name: Install Chrome win_chocolatey: name: googlechrome + ignore_checksums: True # TODO: re-enable checksums when the package is fixed - name: Disable Chrome updates win_regedit: diff --git a/roles/cp2102_driver/tasks/main.yml b/roles/cp2102_driver/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/cp2102_driver/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/cp2102_driver/tasks/main_lin.yml b/roles/cp2102_driver/tasks/main_lin.yml new file mode 100644 index 0000000..1304d4b --- /dev/null +++ b/roles/cp2102_driver/tasks/main_lin.yml @@ -0,0 +1,3 @@ +- name: do not install a special driver under Linux + debug: + msg: "Serial drivers are in mainline" diff --git a/roles/cp2102_driver/tasks/main_win.yml b/roles/cp2102_driver/tasks/main_win.yml new file mode 100644 index 0000000..a578ecb --- /dev/null +++ b/roles/cp2102_driver/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install CP210x USB to UART Bridge VCP Drivers + win_chocolatey: + name: cp210x-vcp-drivers-win10 diff --git a/roles/eclipse/tasks/main_win.yml b/roles/eclipse/tasks/main_win.yml index 064d5fa..238e4d7 100644 --- a/roles/eclipse/tasks/main_win.yml +++ b/roles/eclipse/tasks/main_win.yml @@ -1,10 +1,11 @@ - name: Set Eclipse version set_fact: - target_version: "4.25" + target_version: "4.28.0" - name: Install Eclipse win_chocolatey: name: eclipse + state: upgrade version: "{{ target_version }}" - name: Set up default directories for Eclipse diff --git a/roles/fri_base/meta/main.yml b/roles/fri_base/meta/main.yml index f868c15..ca40277 100644 --- a/roles/fri_base/meta/main.yml +++ b/roles/fri_base/meta/main.yml @@ -8,3 +8,4 @@ dependencies: - role: sublime-text - role: sumatrapdf - role: vlc + - role: wget diff --git a/roles/fri_base/tasks/main.yml b/roles/fri_base/tasks/main.yml index 1d2f17e..55203f6 100644 --- a/roles/fri_base/tasks/main.yml +++ b/roles/fri_base/tasks/main.yml @@ -1,4 +1,4 @@ -# - import_tasks: main_win.yml -# when: ansible_connection == 'winrm' -# - import_tasks: main_lin.yml -# when: ansible_connection == 'ssh' +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/fri_base/tasks/main_lin.yml b/roles/fri_base/tasks/main_lin.yml index f3eb5f3..7a2987d 100644 --- a/roles/fri_base/tasks/main_lin.yml +++ b/roles/fri_base/tasks/main_lin.yml @@ -1,12 +1,3 @@ -- name: Install firefox - - include_tasks: firefox.yml - -- name: Install Libre Office - - include_tasks: libreoffice.yml - -- name: Install 7zip - - include_tasks: 7zip.yml - - name: Install generally useful packages apt: name: @@ -47,6 +38,11 @@ - overlayroot - nfs-common - cifs-utils + - neovim-qt + - binwalk + - iotop + - htop + - jdupes state: latest update_cache: yes @@ -95,7 +91,7 @@ - name: Add mount - C mount: boot: true - fstype: ntfs3 + fstype: ntfs-3g src: UUID=A09E30889E30594C path: /mnt/C state: mounted @@ -104,21 +100,12 @@ - name: Add mount - D mount: boot: true - fstype: ntfs3 + fstype: ntfs-3g src: "LABEL=D:" path: /mnt/D state: mounted opts: defaults,nofail -- name: Add mount - F - mount: - boot: true - fstype: ntfs3 - src: "LABEL=F:" - path: /mnt/F - state: mounted - opts: defaults,nofail - - name: Add mount - partimag mount: boot: true diff --git a/roles/fri_base/tasks/main_win.yml b/roles/fri_base/tasks/main_win.yml index 5b3db8d..c28a035 100644 --- a/roles/fri_base/tasks/main_win.yml +++ b/roles/fri_base/tasks/main_win.yml @@ -1,12 +1,25 @@ -- include_tasks: 7zip.yml -- include_tasks: chrome.yml -- include_tasks: firefox.yml -- include_tasks: libreoffice.yml -- include_tasks: msys2.yml -- include_tasks: pycharm.yml # not required by anyone but used by everyone -- include_tasks: sublime-text.yml -- include_tasks: sumatrapdf.yml -- include_tasks: vlc.yml +#- include_tasks: 7zip.yml +#- include_tasks: chrome.yml +#- include_tasks: firefox.yml +#- include_tasks: libreoffice.yml +#- include_tasks: msys2.yml +#- include_tasks: pycharm.yml # not required by anyone but used by everyone +#- include_tasks: sublime-text.yml +#- include_tasks: sumatrapdf.yml +#- include_tasks: vlc.yml - name: Set timezone win_timezone: timezone: Central Europe Standard Time +- name: Show file extensions in Explorer + win_regedit: + path: HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced + name: HideFileExt + data: 0 + type: dword +- name: Install PSCX + community.windows.win_psmodule: + name: Pscx + state: present + +# TODO: turn on GPO to allow guest SMB logins +# TODO: open firewall for Samba diff --git a/roles/jdk/tasks/main_lin.yml b/roles/jdk/tasks/main_lin.yml index c393c2f..8173858 100644 --- a/roles/jdk/tasks/main_lin.yml +++ b/roles/jdk/tasks/main_lin.yml @@ -18,6 +18,11 @@ name: default-jdk state: latest +- name: Install Java docs + apt: + name: default-jdk-doc + state: latest + - name: Install Oracle Java dependencies apt: @@ -30,3 +35,7 @@ apt: deb: "https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.deb" +- name: Install Java docs + apt: + deb: "https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.deb" + diff --git a/roles/jdk/tasks/main_win.yml b/roles/jdk/tasks/main_win.yml index c3e3dc6..08d0d20 100644 --- a/roles/jdk/tasks/main_win.yml +++ b/roles/jdk/tasks/main_win.yml @@ -21,9 +21,30 @@ value: "{{ reg['raw_value'] }}" level: machine +- name: Add "." to CLASSPATH + win_path: + name: CLASSPATH + elements: "." + state: present + scope: machine + - name: Disable Java updates win_regedit: path: HKLM:\SOFTWARE\WOW6432Node\JavaSoft\Java Update\Policy name: EnableJavaUpdate type: dword data: 0 + +#- name: Download Java documentation +# TODO: download Java doc +- name: Download Java doc + win_get_url: + path: "{{ reg['raw_value'] }}" + url: https://download.oracle.com/otn_software/java/jdk/21+35/fd2272bbf8e04c3dbaee13770090416c/jdk-21_doc-all.zip + register: downloaded_docs + +- name: Unpack Java docs + win_unzip: + path: "{{ downloaded_docs }}" + dest: "{{ reg['raw_value'] }}\\docs" + delete_archive: yes diff --git a/roles/jupyter/meta/main.yml b/roles/jupyter/meta/main.yml new file mode 100644 index 0000000..b783143 --- /dev/null +++ b/roles/jupyter/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: python3 diff --git a/roles/linroom_ad/templates/sssd.conf b/roles/linroom_ad/templates/sssd.conf index cd745fa..6ac320f 100644 --- a/roles/linroom_ad/templates/sssd.conf +++ b/roles/linroom_ad/templates/sssd.conf @@ -28,3 +28,4 @@ ldap_id_mapping = True use_fully_qualified_names = True fallback_homedir = /home/%u@%d access_provider = ad +ad_gpo_ignore_unreadable = True diff --git a/roles/matlab/files/matlab.desktop b/roles/matlab/files/matlab.desktop new file mode 100644 index 0000000..d049f46 --- /dev/null +++ b/roles/matlab/files/matlab.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Matlab +GenericName=Matlab +Comment=Use Octave instead +Exec=matlab +Icon=matlab +Terminal=false +Type=Application +Categories=Science;Math;Education; +StartupNotify=true diff --git a/roles/matlab/meta/main.yml b/roles/matlab/meta/main.yml new file mode 100644 index 0000000..144a389 --- /dev/null +++ b/roles/matlab/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: fri_base diff --git a/roles/matlab/tasks/main_lin.yml b/roles/matlab/tasks/main_lin.yml index 13a29e3..6d0e0dc 100644 --- a/roles/matlab/tasks/main_lin.yml +++ b/roles/matlab/tasks/main_lin.yml @@ -1,6 +1,72 @@ -# TODO: usposobi install Matlaba na D: -# TODO: zamenjaj podvojene datoteke s symlinki -- name: Matlab - debug: - msg: "Matlab" +- name: Set Matlab version and destination + set_fact: + target_version: "R2023b" + install_dir: "/mnt/ucilnice_d/install/matlab/" + license_path: "/mnt/ucilnice_d/install/matlab/network.lic" + dest_dir: /opt/matlab +- name: Mount Matlab ISO + mount: + src: "{{install_dir}}/{{ target_version }}_Linux.iso" + path: "/tmp/matlab_iso" + fstype: auto + state: "{{ item }}" + loop: + - unmounted + - ephemeral + +- name: Prepare installer_input.txt + template: + src: installer_input.txt + dest: /tmp/matlab_installer_input.txt + +- name: Install Matlab + command: + cmd: /tmp/matlab_iso/install -inputFile "/tmp/matlab_installer_input.txt" + # creates: "{{ dest_dir }}/VersionInfo.xml" +#- name: Unmount Matlab ISO +# win_disk_image: +# image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}_windows.iso" +# state: absent + +- name: Unount Matlab ISO + mount: + path: "/tmp/matlab_iso" + state: unmounted + +# TODO MATLAB throws license error -83 when run +- name: Create licenses dir + file: + path: "{{dest_dir}}/licenses" + state: directory + +- name: Install Matlab license + copy: + src: "{{ license_path }}" + dest: "{{ dest_dir }}/licenses/network.lic" + remote_src: true + +- name: Add symlink to /usr/local/bin + file: + src: /opt/matlab/bin/matlab + path: /usr/local/bin/matlab + state: link + +- name: Install .desktop file + block: + - file: + path: /usr/local/share/applications + state: directory + - copy: + dest: /usr/local/share/applications/matlab.desktop + src: matlab.desktop + +- name: Install icon + block: + - file: + path: /usr/local/share/icons + state: directory + - copy: + src: "{{ dest_dir }}/bin/glnxa64/cef_resources/matlab_icon.png" + dest: /usr/local/share/icons/matlab.png + remote_src: true diff --git a/roles/matlab/tasks/main_win.yml b/roles/matlab/tasks/main_win.yml index 37b0734..b448182 100644 --- a/roles/matlab/tasks/main_win.yml +++ b/roles/matlab/tasks/main_win.yml @@ -1,26 +1,33 @@ -- name: Set Matlab version +- name: Set Matlab version and destination set_fact: - target_version: "r2022b" + target_version: "r2023b" + license_path: \\ucilnicesmb.fri1.uni-lj.si\ucilnice_d\install\matlab\network.lic + dest_dir: D:\matlab - name: Mount Matlab ISO win_disk_image: - image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}.iso" + image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}_windows.iso" state: present register: disk_image +- name: Prepare installer_input.txt + template: + src: installer_input.txt + dest: d:\matlab_installer_input.txt + - name: Install Matlab win_package: path: "{{ disk_image.mount_paths[0] }}\\setup.exe" - arguments: -inputFile "{{ installers }}\\matlab\\installer_input.txt" + arguments: -inputFile "d:\\matlab_installer_input.txt" - name: Unmount Matlab ISO win_disk_image: - image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}.iso" + image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}_windows.iso" state: absent # TODO MATLAB throws license error -83 when run - name: Install Matlab license win_copy: - dest: "%ProgramFiles%\\MATLAB\\{{ target_version }}\\licenses\\network.lic" + dest: "{{ dest_dir }}\\licenses\\network.lic" src: "{{ installers }}\\matlab\\network.lic" remote_src: yes diff --git a/roles/matlab/templates/installer_input.txt b/roles/matlab/templates/installer_input.txt new file mode 100644 index 0000000..4207b6d --- /dev/null +++ b/roles/matlab/templates/installer_input.txt @@ -0,0 +1,157 @@ +# (Windows) setup.exe -inputFile +# destinationFolder= +destinationFolder={{ dest_dir }} + +fileInstallationKey={{ matlab_key }} + +agreeToLicense=yes +# outputFile=C:\matlab-install.txt + +## Enable Login Named User licensing +## +## Set to Yes to enable use of a Login Named User license for all users of this MATLAB installation +## Users must log in to their MathWorks Account when MATLAB starts. +## +## NOTE: This flag is valid in silent installations only. +enableLNU=no + +improveMATLAB=no + +## SPECIFY PATH TO LICENSE FILE (Required for network license types only) +## +## This value is required when installing as a Network End-User +## Example: +## (Windows) licensePath=C:\TEMP\license.dat +## (Linux) licensePath=/tmp/license.dat +## Set the desired value for licensePath and +## uncomment the line. +licensePath={{ license_path }} + +# setFileAssoc=true +desktopShortcut=true +# startMenuShortcut=true +# createAccelTask=true + +#product.5G_Toolbox +#product.AUTOSAR_Blockset +#product.Aerospace_Blockset +#product.Aerospace_Toolbox +#product.Antenna_Toolbox +product.Audio_Toolbox +#product.Automated_Driving_Toolbox +product.Bioinformatics_Toolbox +#product.Bluetooth_Toolbox +#product.C2000_Microcontroller_Blockset +#product.Communications_Toolbox +#product.Computer_Vision_Toolbox +#product.Control_System_Toolbox +#product.Curve_Fitting_Toolbox +#product.DDS_Blockset +#product.DO_Qualification_Kit +#product.DSP_HDL_Toolbox +product.DSP_System_Toolbox +#product.Data_Acquisition_Toolbox +#product.Database_Toolbox +#product.Datafeed_Toolbox +#product.Deep_Learning_HDL_Toolbox +product.Deep_Learning_Toolbox +#product.Econometrics_Toolbox +#product.Embedded_Coder +#product.Filter_Design_HDL_Coder +#product.Financial_Instruments_Toolbox +#product.Financial_Toolbox +#product.Fixed-Point_Designer +#product.Fuzzy_Logic_Toolbox +#product.GPU_Coder +#product.Global_Optimization_Toolbox +#product.HDL_Coder +#product.HDL_Verifier +#product.IEC_Certification_Kit +#product.Image_Acquisition_Toolbox +product.Image_Processing_Toolbox +#product.Industrial_Communication_Toolbox +#product.Instrument_Control_Toolbox +#product.LTE_Toolbox +#product.Lidar_Toolbox +product.MATLAB +product.MATLAB_Coder +product.MATLAB_Compiler +#product.MATLAB_Compiler_SDK +#product.MATLAB_Parallel_Server +#product.MATLAB_Production_Server +#product.MATLAB_Report_Generator +#product.MATLAB_Test +#product.MATLAB_Web_App_Server +#product.Mapping_Toolbox +product.Medical_Imaging_Toolbox +#product.Mixed-Signal_Blockset +#product.Model_Predictive_Control_Toolbox +#product.Model-Based_Calibration_Toolbox +#product.Motor_Control_Blockset +#product.Navigation_Toolbox +#product.Optimization_Toolbox +#product.Parallel_Computing_Toolbox +#product.Partial_Differential_Equation_Toolbox +#product.Phased_Array_System_Toolbox +#product.Polyspace_Bug_Finder +#product.Polyspace_Bug_Finder_Server +#product.Polyspace_Code_Prover +#product.Polyspace_Code_Prover_Server +#product.Polyspace_Test +#product.Powertrain_Blockset +#product.Predictive_Maintenance_Toolbox +#product.RF_Blockset +#product.RF_PCB_Toolbox +#product.RF_Toolbox +#product.ROS_Toolbox +#product.Radar_Toolbox +#product.Reinforcement_Learning_Toolbox +#product.Requirements_Toolbox +#product.Risk_Management_Toolbox +#product.Robotics_System_Toolbox +#product.Robust_Control_Toolbox +#product.Satellite_Communications_Toolbox +#product.Sensor_Fusion_and_Tracking_Toolbox +#product.SerDes_Toolbox +#product.Signal_Integrity_Toolbox +product.Signal_Processing_Toolbox +#product.SimBiology +#product.SimEvents +#product.Simscape +#product.Simscape_Battery +#product.Simscape_Driveline +#product.Simscape_Electrical +#product.Simscape_Fluids +#product.Simscape_Multibody +#product.Simulink +#product.Simulink_3D_Animation +#product.Simulink_Check +#product.Simulink_Code_Inspector +#product.Simulink_Coder +#product.Simulink_Compiler +#product.Simulink_Control_Design +#product.Simulink_Coverage +#product.Simulink_Design_Optimization +#product.Simulink_Design_Verifier +#product.Simulink_Desktop_Real-Time +#product.Simulink_Fault_Analyzer +#product.Simulink_PLC_Coder +#product.Simulink_Real-Time +#product.Simulink_Report_Generator +#product.Simulink_Test +#product.SoC_Blockset +#product.Spreadsheet_Link +#product.Stateflow +product.Statistics_and_Machine_Learning_Toolbox +#product.Symbolic_Math_Toolbox +#product.System_Composer +#product.System_Identification_Toolbox +#product.Text_Analytics_Toolbox +#product.UAV_Toolbox +#product.Vehicle_Dynamics_Blockset +#product.Vehicle_Network_Toolbox +#product.Vision_HDL_Toolbox +#product.WLAN_Toolbox +#product.Wavelet_Toolbox +#product.Wireless_HDL_Toolbox +#product.Wireless_Testbench diff --git a/roles/matlab/templates/matlab.desktop b/roles/matlab/templates/matlab.desktop new file mode 100644 index 0000000..848bd4a --- /dev/null +++ b/roles/matlab/templates/matlab.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Matlab +GenericName=Matlab +Comment=Use Octave instead +Exec=matlab +Icon=matlab +Terminal=false +Type=Application +Categories=Science;Math; +StartupNotify=true diff --git a/roles/matlab/templates/network.lic b/roles/matlab/templates/network.lic new file mode 100644 index 0000000..cb973a6 --- /dev/null +++ b/roles/matlab/templates/network.lic @@ -0,0 +1,2 @@ +SERVER kms1.uni-lj.si 00155DCFD802 27000 +USE_SERVER diff --git a/roles/msys2/tasks/main_win.yml b/roles/msys2/tasks/main_win.yml index 0e22935..7135835 100644 --- a/roles/msys2/tasks/main_win.yml +++ b/roles/msys2/tasks/main_win.yml @@ -7,14 +7,14 @@ block: - name: Download msys2 win_get_url: - url: "https://github.com/msys2/msys2-installer/releases/download/2022-09-04/msys2-x86_64-20220904.exe" + url: "https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-x86_64-20230718.exe" dest: 'C:\' register: download - name: Install msys2 win_package: path: "{{ download.dest }}" - arguments: install --confirm-command --accept-messages --root C:\msys64 + arguments: install --confirm-command --accept-messages -Sy --root C:\msys64 - name: Remove temporary files win_file: @@ -39,3 +39,7 @@ - rlwrap - rsync - vim + - name: Add msys2 to path + win_path: + elements: C:\msys64\usr\bin + state: present diff --git a/roles/mysql-odbc-connector/tasks/main_win.yml b/roles/mysql-odbc-connector/tasks/main_win.yml index f44a194..b113b14 100644 --- a/roles/mysql-odbc-connector/tasks/main_win.yml +++ b/roles/mysql-odbc-connector/tasks/main_win.yml @@ -1,12 +1,22 @@ +- name: Download mysql ODBC connector (32-bit) + win_get_url: + url: https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.33-win32.msi + dest: C:\mysql-connector-odbc-8.0.33-win32.msi + http_agent: "Wget/1.21.3" + - name: Install MySQL ODBC connector (32-bit) win_package: - path: https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.33-win32.msi - # product_id: "8f52ac06-953a-49fc-95d9-58497892fa21" + path: c:\mysql-connector-odbc-8.0.33-win32.msi product_id: "9F326F09-E926-444B-86E9-1BEA240886A2" +- name: Download mysql ODBC connector (64-bit) + win_get_url: + url: https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.33-winx64.msi + dest: C:\mysql-connector-odbc-8.0.33-winx64.msi + http_agent: "Wget/1.21.3" + - name: Install MySQL ODBC connector (64-bit) win_package: - path: https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.33-winx64.msi - # product_id: "a02f5ad7-2744-4911-a102-8253913ca59c" + path: C:\mysql-connector-odbc-8.0.33-winx64.msi product_id: "9AC93A88-9070-47B0-9EFC-DDA915EF22BA" diff --git a/roles/mysql_workbench/tasks/main_lin.yml b/roles/mysql_workbench/tasks/main_lin.yml index 8290fa6..aefdaba 100644 --- a/roles/mysql_workbench/tasks/main_lin.yml +++ b/roles/mysql_workbench/tasks/main_lin.yml @@ -1,3 +1,8 @@ +- name: Download mysql workbench + get_url: + url: https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb + dest: /tmp/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb + http_agent: "Wget/1.21.3" - name: Install mysql workbench apt: - deb: https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb + deb: /tmp/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb diff --git a/roles/mysql_workbench/tasks/main_win.yml b/roles/mysql_workbench/tasks/main_win.yml index 221ebab..9314723 100644 --- a/roles/mysql_workbench/tasks/main_win.yml +++ b/roles/mysql_workbench/tasks/main_win.yml @@ -1,3 +1,10 @@ +- name: Download mysql workbench + win_get_url: + url: "https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-8.0.34-winx64.msi" + dest: C:\mysql-workbench-community-8.0.34-winx64.msi + http_agent: "Wget/1.21.3" + - name: Install MySQL workbench win_package: - path: "https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-8.0.34-winx64.msi" + path: C:\mysql-workbench-community-8.0.34-winx64.msi + diff --git a/roles/netbeans/tasks/main_win.yml b/roles/netbeans/tasks/main_win.yml index 586bc69..f7e7734 100644 --- a/roles/netbeans/tasks/main_win.yml +++ b/roles/netbeans/tasks/main_win.yml @@ -1,6 +1,6 @@ - name: Set Netbeans version set_fact: - target_version: "15" + target_version: "19" - name: Install Netbeans win_package: diff --git a/roles/nodejs/tasks/main_lin.yml b/roles/nodejs/tasks/main_lin.yml index f94b808..601d761 100644 --- a/roles/nodejs/tasks/main_lin.yml +++ b/roles/nodejs/tasks/main_lin.yml @@ -3,9 +3,13 @@ url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key keyring: /etc/apt/keyrings/nodesource.gpg -- name: Add NodeJS repo url +#- name: Add NodeJS repo url +# apt_repository: +# repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" + +- name: Add NodeJS LTS repo url apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" + repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" - name: Install NodeJS apt: diff --git a/roles/nodejs/tasks/main_win.yml b/roles/nodejs/tasks/main_win.yml index eedccfa..80cb160 100644 --- a/roles/nodejs/tasks/main_win.yml +++ b/roles/nodejs/tasks/main_win.yml @@ -1,3 +1,7 @@ - name: Install NodeJS win_chocolatey: name: nodejs + +- name: Install NodeJS-LTS + win_chocolatey: + name: nodejs-lts diff --git a/roles/notepad++/tasks/main_lin.yml b/roles/notepad++/tasks/main_lin.yml index b45c1a2..505b865 100644 --- a/roles/notepad++/tasks/main_lin.yml +++ b/roles/notepad++/tasks/main_lin.yml @@ -11,8 +11,14 @@ apt: name: wine-binfmt state: latest + +- name: Create dir + file: + path: /opt/notepad++ + state: directory + - name: Download and unpack Notepad++ unarchive: - src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.5.7/npp.8.5.7.portable.x64.7z + src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.5.7/npp.8.5.7.portable.x64.zip dest: /opt/notepad++ remote_src: yes diff --git a/roles/notepad++/tasks/main_win.yml b/roles/notepad++/tasks/main_win.yml index ac1378d..51c131f 100644 --- a/roles/notepad++/tasks/main_win.yml +++ b/roles/notepad++/tasks/main_win.yml @@ -2,3 +2,12 @@ - name: Install Notepad++ win_chocolatey: name: notepadplusplus + +- name: Add Notepad++ to PATH + win_path: + name: PATH + elements: C:\Program Files\Notepad++\ + scope: machine + state: present + + diff --git a/roles/octave/tasks/main_lin.yml b/roles/octave/tasks/main_lin.yml index 0c6f8d0..5abcd83 100644 --- a/roles/octave/tasks/main_lin.yml +++ b/roles/octave/tasks/main_lin.yml @@ -1,4 +1,7 @@ - name: Install Octave apt: - name: octave + name: + - octave + - cantor + - cantor-backend-octave state: latest diff --git a/roles/pelles-c/files/pelles-c.desktop b/roles/pelles-c/files/pelles-c.desktop new file mode 100644 index 0000000..bb4c8da --- /dev/null +++ b/roles/pelles-c/files/pelles-c.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Pelles-C +GenericName=Pelles-C +Comment=A simple IDE +Exec=wine "/mnt/C/Program Files/PellesC/Bin/poide.exe" +Icon=pelles-c +Terminal=false +Type=Application +Categories=Education;Development;ComputerScience; +StartupNotify=true diff --git a/roles/pelles-c/files/pelles-c.png b/roles/pelles-c/files/pelles-c.png new file mode 100644 index 0000000000000000000000000000000000000000..e56c91839d0bb990e6795bcb20c6aa0362beea18 GIT binary patch literal 5764 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 CvQ0$* literal 0 HcmV?d00001 diff --git a/roles/pelles-c/tasks/main_lin.yml b/roles/pelles-c/tasks/main_lin.yml index 15f1a9c..b7deab0 100644 --- a/roles/pelles-c/tasks/main_lin.yml +++ b/roles/pelles-c/tasks/main_lin.yml @@ -10,3 +10,21 @@ apt: name: wine-binfmt state: latest + +- name: Install icon + block: + - file: + path: /usr/local/share/icons + state: directory + - copy: + src: "pelles-c.png" + dest: /usr/local/share/icons/pelles-c.png + +- name: Create .desktop file + block: + - file: + path: /usr/local/share/applications + state: directory + - copy: + dest: /usr/local/share/applications/pelles-c.desktop + src: pelles-c.desktop diff --git a/roles/powerdesigner/tasks/main_lin.yml b/roles/powerdesigner/tasks/main_lin.yml index 4f8cb09..60a6243 100644 --- a/roles/powerdesigner/tasks/main_lin.yml +++ b/roles/powerdesigner/tasks/main_lin.yml @@ -1,12 +1,4 @@ -# TODO install PowerDesigner -- name: PowerDesigner - debug: - msg: "Install PowerDesigner" -- name: Install Wine - apt: - name: wine-development - state: latest -- name: Install Wine binfmt support - apt: - name: wine-binfmt - state: latest +- name: Install PowerDesigner + win_package: + path: "{{ installers }}\\PowerDesigner 12.5\\cd1\\setup\\setup.exe" + arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\"" diff --git a/roles/powerdesigner/tasks/main_win.yml b/roles/powerdesigner/tasks/main_win.yml index 3afde4e..24f09fb 100644 --- a/roles/powerdesigner/tasks/main_win.yml +++ b/roles/powerdesigner/tasks/main_win.yml @@ -1 +1,4 @@ -# TODO Which one? +- name: Install PowerDesigner + win_package: + path: "{{ installers }}\\PowerDesigner 12.5\\cd1\\setup\\setup.exe" + arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\" /f2\"C:\powerdesigner_log.iss\"" diff --git a/roles/powerdesigner/templates/setup.iss b/roles/powerdesigner/templates/setup.iss new file mode 100755 index 0000000..8503670 --- /dev/null +++ b/roles/powerdesigner/templates/setup.iss @@ -0,0 +1,165 @@ +[InstallShield Silent] +Version=v7.00 +File=Response File +[File Transfer] +OverwrittenReadOnly=NoToAll +[{{ powerdesigner_key }}-DlgOrder] +Dlg0={{ powerdesigner_key }}-SdWelcome-0 +Count=10 +Dlg1={{ powerdesigner_key }}-SybSelectInstallMode-0 +Dlg2={{ powerdesigner_key }}-SybFlexLM-0 +Dlg3={{ powerdesigner_key }}-SybSelectPackage-0 +Dlg4={{ powerdesigner_key }}-Sybase License-0 +Dlg5={{ powerdesigner_key }}-SdAskDestPath-0 +Dlg6={{ powerdesigner_key }}-SdComponentTree-0 +Dlg7={{ powerdesigner_key }}-Graphic Select Folder-0 +Dlg8={{ powerdesigner_key }}-SdStartCopy-0 +Dlg9={{ powerdesigner_key }}-SdFinish-0 +[{{ powerdesigner_key }}-SdWelcome-0] +Result=1 +[{{ powerdesigner_key }}-SybSelectInstallMode-0] +Mode=3 +Result=1 +[{{ powerdesigner_key }}-SybFlexLM-0] +LicenseServer=todo.fri1.uni-lj.si +PortNumber=27000 +Result=1 +[{{ powerdesigner_key }}-SybSelectPackage-0] +Package=Studio Enterprise +Result=1 +[{{ powerdesigner_key }}-Sybase License-0] +Sybase_License=accept +[{{ powerdesigner_key }}-SdAskDestPath-0] +szDir=C:\Program Files (x86)\Sybase\PowerDesigner 12 +Result=1 +[{{ powerdesigner_key }}-SdComponentTree-0] +szDir=C:\Program Files (x86)\Sybase\PowerDesigner 12 +CR\FRM-type=string +CR\FRM-count=2 +CR\FRM-0=CR\FRM\FRM_Xem +CR\FRM-1=CR\FRM\FRM_License +CR-type=string +CR-count=11 +CR-0=CR\FRM +CR-1=CR\CR_Examples +CR-2=CR\CR_HelpCHM +CR-3=CR\CR_License +CR-4=CR\CR_Misc +CR-5=CR\CR_Report +CR-6=CR\CR_Addins +CR-7=CR\CR_Common +CR-8=CR\CR_System +CR-9=CR\CR_LOO_Common +CR-10=CR\CR_Scripting +BPM-type=string +BPM-count=3 +BPM-0=BPM\BPM_License +BPM-1=BPM\BPM_Examples +BPM-2=BPM\BPM_Report +CDM-type=string +CDM-count=3 +CDM-0=CDM\CDM_License +CDM-1=CDM\CDM_Examples +CDM-2=CDM\CDM_Report +ILM-type=string +ILM-count=3 +ILM-0=ILM\ILM_License +ILM-1=ILM\ILM_Examples +ILM-2=ILM\ILM_Report +OOM\OOM_Examples-type=string +OOM\OOM_Examples-count=1 +OOM\OOM_Examples-0=OOM\OOM_Examples\OOM_Tools +OOM\OOM_Library-type=string +OOM\OOM_Library-count=16 +OOM\OOM_Library-0=OOM\OOM_Library\OOM_PB6 +OOM\OOM_Library-1=OOM\OOM_Library\OOM_PB7 +OOM\OOM_Library-2=OOM\OOM_Library\OOM_PB8 +OOM\OOM_Library-3=OOM\OOM_Library\OOM_PB9 +OOM\OOM_Library-4=OOM\OOM_Library\OOM_PB10 +OOM\OOM_Library-5=OOM\OOM_Library\OOM_JDK130 +OOM\OOM_Library-6=OOM\OOM_Library\OOM_JDK131 +OOM\OOM_Library-7=OOM\OOM_Library\OOM_JDK131J2EE +OOM\OOM_Library-8=OOM\OOM_Library\OOM_JDK140 +OOM\OOM_Library-9=OOM\OOM_Library\OOM_JDK150 +OOM\OOM_Library-10=OOM\OOM_Library\OOM_CSNET10 +OOM\OOM_Library-11=OOM\OOM_Library\OOM_CSNET11 +OOM\OOM_Library-12=OOM\OOM_Library\OOM_CSNET20 +OOM\OOM_Library-13=OOM\OOM_Library\OOM_VBNET10 +OOM\OOM_Library-14=OOM\OOM_Library\OOM_VBNET11 +OOM\OOM_Library-15=OOM\OOM_Library\OOM_VBNET20 +OOM-type=string +OOM-count=5 +OOM-0=OOM\OOM_License +OOM-1=OOM\OOM_Examples +OOM-2=OOM\OOM_Report +OOM-3=OOM\OOM_Addins +OOM-4=OOM\OOM_Library +PDM\PDM_Examples-type=string +PDM\PDM_Examples-count=1 +PDM\PDM_Examples-0=PDM\PDM_Examples\PDM_Examples_NoViewer +PDM\PDM_Addins-type=string +PDM\PDM_Addins-count=2 +PDM\PDM_Addins-0=PDM\PDM_Addins\PDM_Addins_Sql2000 +PDM\PDM_Addins-1=PDM\PDM_Addins\PDM_Addins_Sql2005 +PDM-type=string +PDM-count=5 +PDM-0=PDM\PDM_License +PDM-1=PDM\PDM_Examples +PDM-2=PDM\PDM_Report +PDM-3=PDM\PDM_Tools +PDM-4=PDM\PDM_Addins +RQM-type=string +RQM-count=3 +RQM-0=RQM\RQM_License +RQM-1=RQM\RQM_Examples +RQM-2=RQM\RQM_Report +XSM-type=string +XSM-count=4 +XSM-0=XSM\XSM_License +XSM-1=XSM\XSM_Examples +XSM-2=XSM\XSM_Report +XSM-3=XSM\XSM_Addins +RPY-type=string +RPY-count=3 +RPY-0=RPY\RPY_Tools +RPY-1=RPY\RPY_License +RPY-2=RPY\RPY_Examples +PDF-type=string +PDF-count=9 +PDF-0=PDF\PDF_General +PDF-1=PDF\PDF_BPM +PDF-2=PDF\PDF_CDM +PDF-3=PDF\PDF_ILM +PDF-4=PDF\PDF_OOM +PDF-5=PDF\PDF_PDM +PDF-6=PDF\PDF_RQM +PDF-7=PDF\PDF_XSM +PDF-8=PDF\PDF_RPY +Component-type=string +Component-count=10 +Component-0=CR +Component-1=BPM +Component-2=CDM +Component-3=ILM +Component-4=OOM +Component-5=PDM +Component-6=RQM +Component-7=XSM +Component-8=RPY +Component-9=PDF +Result=1 +[{{ powerdesigner_key }}-Graphic Select Folder-0] +szFolder=Sybase\PowerDesigner 12 +Result=1 +[{{ powerdesigner_key }}-SdStartCopy-0] +Keep_Settings=0 +Result=1 +[Application] +Name=Sybase PowerDesigner 12.5 +Version=12.5.2169 +Company=Sybase +Lang=0009 +[{{ powerdesigner_key }}-SdFinish-0] +Result=1 +bOpt1=0 +bOpt2=0 diff --git a/roles/projectlibre/tasks/main_win.yml b/roles/projectlibre/tasks/main_win.yml index 1e6e06d..0deadf0 100644 --- a/roles/projectlibre/tasks/main_win.yml +++ b/roles/projectlibre/tasks/main_win.yml @@ -1,4 +1,5 @@ - name: Install ProjectLibre win_package: - path: "https://sourceforge.net/projects/projectlibre/files/ProjectLibre/1.9.3/projectlibre-1.9.3.exe" + path: "https://deac-riga.dl.sourceforge.net/project/projectlibre/ProjectLibre/1.9.3/projectlibre-1.9.3.exe" + # path: "https://sourceforge.net/projects/projectlibre/files/ProjectLibre/1.9.3/projectlibre-1.9.3.exe/download?use_mirror=deac-riga&download=&failedmirror=deac-ams.dl.sourceforge.net" arguments: /VerySilent diff --git a/roles/pulseview/tasks/main.yml b/roles/pulseview/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/pulseview/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/pulseview/tasks/main_lin.yml b/roles/pulseview/tasks/main_lin.yml new file mode 100644 index 0000000..2485720 --- /dev/null +++ b/roles/pulseview/tasks/main_lin.yml @@ -0,0 +1,4 @@ +- name: Install PulseView + apt: + name: pulseview + state: latest diff --git a/roles/pulseview/tasks/main_win.yml b/roles/pulseview/tasks/main_win.yml new file mode 100644 index 0000000..1fa7568 --- /dev/null +++ b/roles/pulseview/tasks/main_win.yml @@ -0,0 +1,16 @@ +- name: Download PulseView + win_get_url: + url: https://sigrok.org/download/binary/pulseview/pulseview-0.4.2-64bit-static-release-installer.exe + # url: https://sigrok.org/download/binary/pulseview/pulseview-NIGHTLY-64bit-static-release-installer.exe + dest: C:\ + register: download + +- name: Install PulseView + win_package: + path: "{{ download.dest }}" + arguments: /S /Verysilent /AllUsers + +#- name: Remove temporary files +# win_file: +# path: "{{ download.dest }}" +# state: absent diff --git a/roles/putty/tasks/main.yml b/roles/putty/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/putty/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/putty/tasks/main_lin.yml b/roles/putty/tasks/main_lin.yml new file mode 100644 index 0000000..da91744 --- /dev/null +++ b/roles/putty/tasks/main_lin.yml @@ -0,0 +1,8 @@ +- name: Install serial terminals (putty alternatives) + apt: + name: + - screen + - cutecom + - gtkterm + - minicom + state: latest diff --git a/roles/putty/tasks/main_win.yml b/roles/putty/tasks/main_win.yml new file mode 100644 index 0000000..aada745 --- /dev/null +++ b/roles/putty/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install Putty + win_chocolatey: + name: putty diff --git a/roles/pytorch/tasks/main.yml b/roles/pytorch/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/pytorch/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/pytorch/tasks/main_lin.yml b/roles/pytorch/tasks/main_lin.yml new file mode 100644 index 0000000..992b04e --- /dev/null +++ b/roles/pytorch/tasks/main_lin.yml @@ -0,0 +1,8 @@ +- name: Install pytorch + apt: + name: + - python3-torch + - python3-skorch + - python3-torch-ignite + state: latest + diff --git a/roles/pytorch/tasks/main_win.yml b/roles/pytorch/tasks/main_win.yml new file mode 100644 index 0000000..b0835b5 --- /dev/null +++ b/roles/pytorch/tasks/main_win.yml @@ -0,0 +1,2 @@ +- name: Install pytorch + win_command: pip install torch skorch pytorch-ignite diff --git a/roles/rstudio/tasks/main_win.yml b/roles/rstudio/tasks/main_win.yml index 59722b2..28817db 100644 --- a/roles/rstudio/tasks/main_win.yml +++ b/roles/rstudio/tasks/main_win.yml @@ -67,6 +67,7 @@ - name: Install RStudio win_chocolatey: + ignore_checksums: true # TODO re-enable checksums when they fix the package name: r.studio - name: Create configuration directory diff --git a/roles/scipy/tasks/main.yml b/roles/scipy/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/scipy/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/scipy/tasks/main_lin.yml b/roles/scipy/tasks/main_lin.yml new file mode 100644 index 0000000..df18069 --- /dev/null +++ b/roles/scipy/tasks/main_lin.yml @@ -0,0 +1,7 @@ +- name: Install python3-scipy, scikit-learn + apt: + name: + - python3-scipy + - python3-sklearn + state: latest + diff --git a/roles/scipy/tasks/main_win.yml b/roles/scipy/tasks/main_win.yml new file mode 100644 index 0000000..4c13d44 --- /dev/null +++ b/roles/scipy/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install python3-scipy, scikit-learn + win_command: pip install scipy scikit-learn + diff --git a/roles/sifive/tasks/main_lin.yml b/roles/sifive/tasks/main_lin.yml index 0a887bd..9104d51 100644 --- a/roles/sifive/tasks/main_lin.yml +++ b/roles/sifive/tasks/main_lin.yml @@ -2,3 +2,22 @@ # Sedaj hocejo, da se registriras... da prides do kode # Potem pa ti ne dajo izvorne kode. # ucilnice_install/2022-23/ORS_VGRS_Bulic +# +# +- name: create destination for SiFive + file: + path: /opt/SiFive + state: directory + +- name: Download SiFive Studio + command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/bulic_fri1_uni-lj_si/ERb-TvMrILpIpFYT6n9u1WYB-gkBMh5SnM3_xSFgsFAFtA?e=2BSN8F&download=1" -O /opt/sifive.tgz + args: + creates: /opt/sifive.tgz + +- name: "Install SiFive Studio" + unarchive: + src: /opt/sifive.tgz + dest: /opt/SiFive + # dest: /opt/SiFive + remote_src: yes + diff --git a/roles/sifive/tasks/main_win.yml b/roles/sifive/tasks/main_win.yml index 0a887bd..1030ce1 100644 --- a/roles/sifive/tasks/main_win.yml +++ b/roles/sifive/tasks/main_win.yml @@ -2,3 +2,24 @@ # Sedaj hocejo, da se registriras... da prides do kode # Potem pa ti ne dajo izvorne kode. # ucilnice_install/2022-23/ORS_VGRS_Bulic + +- name: Set SiFive Studio install location + set_fact: + download_filedest: C:\FreedomStudio-4.18.0.2021-04-1-x86_64-w64-mingw32.zip +- name: Download SiFive + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/bulic_fri1_uni-lj_si/EdiSnJpoClJLtc3AtcAtEQ4BI76_PeDvL-ZmhxG4OEyvig?e=xBRYcb&download=1" -O "{{ download_filedest }}" + args: + creates: "{{ download_filedest }}" + +- name: Unzip SiFive Studio + win_unzip: + src: "{{ download_filedest }}" + dest: C:\SiFive\ + creates: C:\SiFive\plugins + delete_archive: yes + +- name: Create desktop shortcut + win_shortcut: + description: "SiFive Freedom Studio" + src: C:\SiFive\FreedomStudio.exe + dest: '%public%\Desktop\SiFive.lnk' diff --git a/roles/smlnj/tasks/main_win.yml b/roles/smlnj/tasks/main_win.yml index 3de06e4..39f51ca 100644 --- a/roles/smlnj/tasks/main_win.yml +++ b/roles/smlnj/tasks/main_win.yml @@ -6,3 +6,10 @@ win_package: path: "https://smlnj.org/dist/working/{{ target_version }}/smlnj-{{ target_version }}.msi" creates_path: "%ProgramFiles(x86)%\\SMLNJ\\bin\\sml.bat" + +#- name: Disable echo for sml.bat (BOF not found in 2023?) +# lineinfile: +# path: "%ProgramFiles(x86)%\\SMLNJ\\bin\\sml.bat" +# line: "@echo OFF" +# insertbefore: "BOF" + diff --git a/roles/solidworks/tasks/main_win.yml b/roles/solidworks/tasks/main_win.yml index e69de29..b24526d 100644 --- a/roles/solidworks/tasks/main_win.yml +++ b/roles/solidworks/tasks/main_win.yml @@ -0,0 +1,5 @@ +# Da se SolidWorks namesti v VM, mora biti CPUID nastavljen na "Host", ne pa KVM-64. +# +# TODO namesti solidworks. +# TODO: nastavi license server na 25734@licence-1.aluo.uni-lj.si +# diff --git a/roles/statsmodels/tasks/main.yml b/roles/statsmodels/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/statsmodels/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/statsmodels/tasks/main_lin.yml b/roles/statsmodels/tasks/main_lin.yml new file mode 100644 index 0000000..ff72e37 --- /dev/null +++ b/roles/statsmodels/tasks/main_lin.yml @@ -0,0 +1,6 @@ +- name: Install statsmodels + apt: + name: + - python3-statsmodels + state: latest + diff --git a/roles/statsmodels/tasks/main_win.yml b/roles/statsmodels/tasks/main_win.yml new file mode 100644 index 0000000..62132ef --- /dev/null +++ b/roles/statsmodels/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install statsmodels + win_command: pip install statsmodels + diff --git a/roles/stm32cube/tasks/main_lin.yml b/roles/stm32cube/tasks/main_lin.yml index 05a9768..808ef23 100644 --- a/roles/stm32cube/tasks/main_lin.yml +++ b/roles/stm32cube/tasks/main_lin.yml @@ -1,3 +1,32 @@ # TODO download stm32; deb install # https://www.st.com/en/development-tools/stm32cubeide.html#get-software +#- name: Download stm32 +# get_url: +# # url: https://unilj-my.sharepoint.com/:u:/r/personal/rozman_fri1_uni-lj_si/Documents/Arhiv/ImportantFiles/st-stm32cubeide_1.13.1_17479_20230728_0839_amd64.sh?download=1 +# dest: /tmp +# mode: "u=rwx,g=rx,o=rx" +# register: download +- name: Set filename + set_fact: + dest_fname: /tmp/st-stm32cubeide_1.13.1_17479_20230728_0839_amd64.sh +- name: Download stm32 + command: + cmd: wget 'https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/Eda8dp03JWtGrT3rdE4ECFUBv2qAGW_aujWujr5YkLp3JA?e=vJRUgY&download=1' -O {{ dest_fname }} + creates: "{{ dest_fname }} " + # url: https://unilj-my.sharepoint.com/:u:/r/personal/rozman_fri1_uni-lj_si/Documents/Arhiv/ImportantFiles/st-stm32cubeide_1.13.1_17479_20230728_0839_amd64.sh?download=1 + +- name: Change script permissions + file: + path: "{{ dest_fname }}" + mode: '0755' + +- name: Run installer script + shell: + cmd: echo "/opt/st/STM32CubeIDE" | DISPLAY=:0 {{ dest_fname }} --nox11 + creates: /opt/st/STM32CubeIDE + +- name: Delete downloaded file + file: + path: "{{ dest_fname }}" + state: absent diff --git a/roles/stm32cube/tasks/main_win.yml b/roles/stm32cube/tasks/main_win.yml index 15f430f..f9b7ab7 100644 --- a/roles/stm32cube/tasks/main_win.yml +++ b/roles/stm32cube/tasks/main_win.yml @@ -1,23 +1,78 @@ -- name: Check WinIDEA install status +- name: Check ST tools install status win_stat: - path: C:\iSYSTEM\winIDEA9\winIDEA.exe + path: C:\ST\ register: file - when: not file.stat.exists block: - - name: Install CubeIDE - win_package: - path: "D:\\RAVINOR\\st-stm32cubeide_1.10.1_12716_20220707_0928_x86_64.exe" - arguments: /S + - name: Set download filenames + set_fact: + cubemx_download_file: C:\CubeMX.exe + cubeprogrammer_download_file: C:\CubeProgrammer.exe + cufinder_download_file: C:\CUFinder.exe + cubeide_download_file: C:\st-stm32cubeide_1.13.1_17479_20230728_0839_x86_64.exe + - name: Download CubeMX + # win_get_url: + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EZhqHxJoAfdEjdlMu0uGWGcBOqrT0vTVv2_nhynWZ3fOwQ?e=ilAlzP&download=1" -O "{{ cubemx_download_file }}" + #dest: C:\CubeMX.exe + #register: cubemx_download + args: + creates: "{{ cubemx_download_file }}" - - name: Set CubeIDE default workspace - win_lineinfile: - path: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\stm32cubeide.ini - regexp: "osgi.instance.area.default" - line: "-Dosgi.instance.area.default=D:/RAVINOR/CubeIDE_Workspace" +# - name: Install CubeMX +# win_package: + # path: "{{cubemx_download.dest}}" +# path: "{{ cubemx_download_file }}" +# arguments: /S + + - name: Download CubeProgrammer + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EVXiui8gFQ1ClgLmaLb2Pn8BmSUK7OLmPapvKQ6JTCXcZQ?e=OUWTDK&download=1" -O "{{ cubeprogrammer_download_file }}" + #win_get_url: + # dest: C:\CubeProgrammer.exe + #register: cubeprogrammer_download + args: + creates: "{{ cubeprogrammer_download_file }}" + +# - name: Install CubeProgrammer +# win_package: +# path: "{{ cubeprogrammer_download_file }}" +# arguments: /S + + - name: Download STM CUFinder + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EfesbSW7EftDoSjtt-nr_eYBH_EBzXnysW0Lk1wnNzx2Mw?e=HSSmDz&download=1" -O "{{ cufinder_download_file }}" + #win_get_url: + # dest: C:\CUFinder.exe + #register: cubecufinder_download + args: + creates: "{{ cufinder_download_file }}" + +# - name: Install STM CUFinder +# win_package: +# path: "{{ cubecufinder_download_file }}" +# arguments: /S + + - name: Download CubeIDE + # win_get_url: + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EegJD8ol6BNBkKCc-wVEImEB6GnjmjEZFqAAWScDLDgUlw?e=BcxukR&download=1" -O "{{ cubeide_download_file }}" + #dest: C:\st-stm32cubeide_1.13.1_17479_20230728_0839_x86_64.exe + #register: cubeide_download + args: + creates: "{{ cubeide_download_file }}" + +# - name: Install CubeIDE +# win_package: +# path: "{{ cubeide_download_file }}" +# arguments: /S +# TODO test the installers + +# - name: Set CubeIDE default workspace +# win_lineinfile: +# path: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\stm32cubeide.ini +# regexp: "osgi.instance.area.default" +# line: "-Dosgi.instance.area.default=D:/RAVINOR/CubeIDE_Workspace" # Replace -installIU... with -list to get available packages. - - name: Install QEMU - win_command: stm32cubeidec.exe -application org.eclipse.equinox.p2.director -nosplash -repository https://download.eclipse.org/embed-cdt/updates/v6/ -installIU org.eclipse.embedcdt.debug.gdbjtag.qemu.feature.group - args: - chdir: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE +# - name: Install QEMU +# win_command: stm32cubeidec.exe -application org.eclipse.equinox.p2.director -nosplash -repository https://download.eclipse.org/embed-cdt/updates/v6/ -installIU org.eclipse.embedcdt.debug.gdbjtag.qemu.feature.group +# args: +# chdir: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE diff --git a/roles/stm32duino/meta/main.yml b/roles/stm32duino/meta/main.yml new file mode 100644 index 0000000..044576e --- /dev/null +++ b/roles/stm32duino/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: arduino diff --git a/roles/stm32duino/tasks/main.yml b/roles/stm32duino/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/stm32duino/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/stm32duino/tasks/main_lin.yml b/roles/stm32duino/tasks/main_lin.yml new file mode 100644 index 0000000..7b29b42 --- /dev/null +++ b/roles/stm32duino/tasks/main_lin.yml @@ -0,0 +1,13 @@ +- name: create destination + file: + path: /opt/Arduino + state: directory + +- name: unpack Arduino + unarchive: + src: + dest: /opt/Arduino-cli + remote_src: yes + +#- name: Add .json for new boards +# diff --git a/roles/stm32duino/tasks/main_win.yml b/roles/stm32duino/tasks/main_win.yml new file mode 100644 index 0000000..2fca098 --- /dev/null +++ b/roles/stm32duino/tasks/main_win.yml @@ -0,0 +1,8 @@ +#- name: Install Arduino IDE +# win_package: +# # path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.exe +# path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.exe +# arguments: /S /AllUsers +# creates_path: "%ProgramFiles%\\Arduino IDE\\Arduino IDE.exe" + +# TODO check if anything else is needed (esp8266com)? diff --git a/roles/tensorflow/tasks/main.yml b/roles/tensorflow/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/tensorflow/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/tensorflow/tasks/main_lin.yml b/roles/tensorflow/tasks/main_lin.yml new file mode 100644 index 0000000..35c805e --- /dev/null +++ b/roles/tensorflow/tasks/main_lin.yml @@ -0,0 +1,4 @@ +- name: Install TensorFlow + pip: + executable: pip3 + name: tensorflow diff --git a/roles/tensorflow/tasks/main_win.yml b/roles/tensorflow/tasks/main_win.yml new file mode 100644 index 0000000..db7d04a --- /dev/null +++ b/roles/tensorflow/tasks/main_win.yml @@ -0,0 +1,2 @@ +- name: Install tensorflow + win_command: pip install tensorflow diff --git a/roles/vscode/tasks/vscode_extensions.yml b/roles/vscode/tasks/vscode_extensions.yml index f42ef76..7255502 100644 --- a/roles/vscode/tasks/vscode_extensions.yml +++ b/roles/vscode/tasks/vscode_extensions.yml @@ -7,6 +7,10 @@ VSCode_Extensions: - ms-dotnettools.csdevkit # IS-63714 - ms-python.python - ms-vscode.cpptools + - franneck94.c-cpp-runner + - ritwickdey.LiveServer + - ms-toolsai.jupyter + - vscodevim.vim - ocamllabs.ocaml-platform - stonebuddha.vscode-better-sml - vscode-icons-team.vscode-icons @@ -14,6 +18,8 @@ VSCode_Extensions: - dan-c-underwood.arm # RA-63703 - marus25.cortex-debug # RA-63703 - NateAGeek.memory-viewer # RA-63703 - - ms-vscode.cpptools-extension-pack # RA-63703 + - ms-vscode.cpptools-extension-pack # RA-63703, Dobravec - platformio.platformio-ide # ORS-63218 - stmicroelectronics.stm32-vscode-extension # RA-63703 + - danielpinto8zz6.c-cpp-compile-run + - vadimcn.vscode-lldb diff --git a/roles/webstorm/tasks/main.yml b/roles/webstorm/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/webstorm/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/webstorm/tasks/main_lin.yml b/roles/webstorm/tasks/main_lin.yml new file mode 100644 index 0000000..ea78b5d --- /dev/null +++ b/roles/webstorm/tasks/main_lin.yml @@ -0,0 +1,15 @@ +#- name: Install WebStorm +# block: +# - name: Create destination for JetBrains WebStorm +# file: +# path: /opt/webstorm +# state: directory +#TODO: poskrbi za namestitev webstorm + - name: Download and unpack JetBrains WebStorm + debug: + msg: "Do not download and unpack WebStorm since we do not have the licenses yet" + #unarchive: + # src: https://download.jetbrains.com/idea/ideaIC-2023.2.1.tar.gz + # dest: /opt/webstorm + # creates: /opt/webstorm/idea-IC-232.9559.62/build.txt + # remote_src: yes diff --git a/roles/webstorm/tasks/main_win.yml b/roles/webstorm/tasks/main_win.yml new file mode 100644 index 0000000..d9e6c71 --- /dev/null +++ b/roles/webstorm/tasks/main_win.yml @@ -0,0 +1,12 @@ +- name: Set WebStorm version + set_fact: + target_version: "2023.2.1" +# TODO: nekako namesti webstorm +# +- name: Install WebStorm (not) + debug: + msg: "Do not install WebStorm since we do not have the licenses yet" + #win_package: + # path: "https://download.jetbrains.com/idea/ideaIC-{{ target_version }}.exe" + # arguments: /S + # creates_path: "%ProgramFiles(x86)%\\JetBrains\\IntelliJ IDEA Community Edition {{ target_version }}\\bin\\idea64.exe" diff --git a/roles/wget/tasks/main.yml b/roles/wget/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/wget/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/wget/tasks/main_lin.yml b/roles/wget/tasks/main_lin.yml new file mode 100644 index 0000000..9e49dab --- /dev/null +++ b/roles/wget/tasks/main_lin.yml @@ -0,0 +1,4 @@ +- name: Install wget + apt: + name: wget + state: latest diff --git a/roles/wget/tasks/main_win.yml b/roles/wget/tasks/main_win.yml new file mode 100644 index 0000000..fc145d1 --- /dev/null +++ b/roles/wget/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install wget + win_chocolatey: + name: wget diff --git a/roles/xgboost/tasks/main.yml b/roles/xgboost/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/xgboost/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/xgboost/tasks/main_lin.yml b/roles/xgboost/tasks/main_lin.yml new file mode 100644 index 0000000..7046677 --- /dev/null +++ b/roles/xgboost/tasks/main_lin.yml @@ -0,0 +1,7 @@ +- name: Install xgboost + apt: + name: + - xgboost + - python3-xgboost + state: latest + diff --git a/roles/xgboost/tasks/main_win.yml b/roles/xgboost/tasks/main_win.yml new file mode 100644 index 0000000..04d0c72 --- /dev/null +++ b/roles/xgboost/tasks/main_win.yml @@ -0,0 +1,3 @@ +- name: Install xgboost + win_command: pip install xgboost +