Popravki ob začetku leta - predelani bolj ali manj vsi programi in predmeti

This commit is contained in:
polz 2023-10-25 21:41:00 +02:00
parent 3ddf1d550f
commit 3b801ad089
97 changed files with 1221 additions and 94 deletions

View file

@ -6,3 +6,4 @@
# Windows, Vivado 2022.1
dependencies:
- role: vivado
- role: cp210x-vcp-drivers-win10

View file

@ -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

View file

@ -4,6 +4,7 @@
dependencies:
- role: logisim
- role: stm32cube
- role: stm32duino
- role: ninja
- role: cmake
- role: gcc-arm

View file

@ -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

View file

@ -5,3 +5,4 @@ dependencies:
- role: git
- role: docker
- role: nodejs
- role: webstorm

View file

@ -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

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,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

View file

@ -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

View file

@ -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

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,4 @@
- name: Do not install AlgoBuilder
debug:
msg: "Do not install AlgoBuilder on Linux"

View file

@ -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

View file

@ -0,0 +1,2 @@
dependencies:
- role: msys2

View file

@ -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

View file

@ -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 }}"

View file

@ -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:

View file

@ -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

View file

@ -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)?

View file

@ -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

View file

@ -1,4 +1,4 @@
- name: Do NOT install Chrome
- name: Install Chromium instead of Chrome
apt:
name: chromium
name: chromium-browser
state: latest

View file

@ -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:

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,3 @@
- name: do not install a special driver under Linux
debug:
msg: "Serial drivers are in mainline"

View file

@ -0,0 +1,3 @@
- name: Install CP210x USB to UART Bridge VCP Drivers
win_chocolatey:
name: cp210x-vcp-drivers-win10

View file

@ -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

View file

@ -8,3 +8,4 @@ dependencies:
- role: sublime-text
- role: sumatrapdf
- role: vlc
- role: wget

View file

@ -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'

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -0,0 +1,2 @@
dependencies:
- role: python3

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,2 @@
dependencies:
- role: fri_base

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,157 @@
# (Windows) setup.exe -inputFile <file_name>
# 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

View file

@ -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

View file

@ -0,0 +1,2 @@
SERVER kms1.uni-lj.si 00155DCFD802 27000
USE_SERVER

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,6 @@
- name: Set Netbeans version
set_fact:
target_version: "15"
target_version: "19"
- name: Install Netbeans
win_package:

View file

@ -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:

View file

@ -1,3 +1,7 @@
- name: Install NodeJS
win_chocolatey:
name: nodejs
- name: Install NodeJS-LTS
win_chocolatey:
name: nodejs-lts

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,7 @@
- name: Install Octave
apt:
name: octave
name:
- octave
- cantor
- cantor-backend-octave
state: latest

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -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

View file

@ -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\""

View file

@ -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\""

View file

@ -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

View file

@ -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

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,4 @@
- name: Install PulseView
apt:
name: pulseview
state: latest

View file

@ -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

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 serial terminals (putty alternatives)
apt:
name:
- screen
- cutecom
- gtkterm
- minicom
state: latest

View file

@ -0,0 +1,3 @@
- name: Install Putty
win_chocolatey:
name: putty

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 pytorch
apt:
name:
- python3-torch
- python3-skorch
- python3-torch-ignite
state: latest

View file

@ -0,0 +1,2 @@
- name: Install pytorch
win_command: pip install torch skorch pytorch-ignite

View file

@ -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

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,7 @@
- name: Install python3-scipy, scikit-learn
apt:
name:
- python3-scipy
- python3-sklearn
state: latest

View file

@ -0,0 +1,3 @@
- name: Install python3-scipy, scikit-learn
win_command: pip install scipy scikit-learn

View file

@ -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

View file

@ -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'

View file

@ -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"

View file

@ -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
#

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,6 @@
- name: Install statsmodels
apt:
name:
- python3-statsmodels
state: latest

View file

@ -0,0 +1,3 @@
- name: Install statsmodels
win_command: pip install statsmodels

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,2 @@
dependencies:
- role: arduino

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,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
#

View file

@ -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)?

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,4 @@
- name: Install TensorFlow
pip:
executable: pip3
name: tensorflow

View file

@ -0,0 +1,2 @@
- name: Install tensorflow
win_command: pip install tensorflow

View file

@ -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

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,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

View file

@ -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"

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,4 @@
- name: Install wget
apt:
name: wget
state: latest

View file

@ -0,0 +1,3 @@
- name: Install wget
win_chocolatey:
name: wget

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,7 @@
- name: Install xgboost
apt:
name:
- xgboost
- python3-xgboost
state: latest

View file

@ -0,0 +1,3 @@
- name: Install xgboost
win_command: pip install xgboost