classroom/roles/stm32mems-studio/tasks/main_win.yml
r.rozmann@jung-electronic.de 529623497c stm32mems-studio added (replaces unicleogui and algobuilder)
added to VIN recipe
2025-09-05 00:05:42 +02:00

32 lines
1.2 KiB
YAML

# TODO
- name: Check MEMS-Studio install status
win_stat:
path: C:\Program Files (x86)\STMicroelectronics\Unicleo-GUI\Unicleo-GUI.exe
register: file
- when: not file.stat.exists
block:
- name: Download MEMS-Studio
#win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EXgZSDD5LgtMrikaKszPliwB1vXrwUxea3eYYObT3zXBaQ?e=eNJyLA" -O C:\mems-studio-2.1.2.exe
win_command: copy "{{ installers }}\RAVINOR\2025\mems-studio-2.1.2.exe" -O { large_prog_dir }\mems-studio-2.1.2.exe
args:
creates: {large_prog_dir}\mems-studio-2.1.2.exe
#win_get_url:
# follow_redirects: all
# http_agent: Wget/1.21.3
# url: https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EQG4vStF7ApBsN2TDm5AjGQBiU0iFbZZiz91UqGeHKX9FA?e=QOQky2?download=1
# dest: C:\Unicleo-GUI_Setup.exe
#register: download
- name: Install MEMS-Studio
win_package:
path: {large_prog_dir}\mems-studio-2.1.2.exe
# path: "{{ download.dest }}"
arguments: /Verysilent /AllUsers
- name: Remove temporary files
win_file:
path: {large_prog_dir}\mems-studio-2.1.2.exe
# path: "{{ download.dest }}"
state: absent