Minor fixes for deprecated and new packages

This commit is contained in:
RR 2025-08-17 20:58:52 +02:00 committed by Gašper Fele-Žorž
parent 2c22dcceaf
commit 5954f4e3ba
3 changed files with 63 additions and 56 deletions

View file

@ -1,31 +1,34 @@
# TODO check install status
# Deprecated - replace by mems-studio
- name: Do not install AlgoBuilder
debug:
msg: "Do not install AlgoBuilder on Windows - deprecated"
# TODO: Exe file is missing - Problem on ST site
- name: Check AlgoBuilder install status
win_stat:
path: C:\Program Files (x86)\Thonny\thonny.exe
register: file
# - 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/EdBQJN3I6fVFj7qgs6SjRp4BZ0QbWIV26NUlLv_4d9JsDQ?e=hA4Cbl&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:/g/personal/rozman_fri1_uni-lj_si/EdBQJN3I6fVFj7qgs6SjRp4BZ0QbWIV26NUlLv_4d9JsDQ?e=hA4Cbl?download=1
# dest: C:\AlgoBuilderSuite.exe
#register: download
# - 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/EdBQJN3I6fVFj7qgs6SjRp4BZ0QbWIV26NUlLv_4d9JsDQ?e=hA4Cbl&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:/g/personal/rozman_fri1_uni-lj_si/EdBQJN3I6fVFj7qgs6SjRp4BZ0QbWIV26NUlLv_4d9JsDQ?e=hA4Cbl?download=1
# # dest: C:\AlgoBuilderSuite.exe
# #register: download
- name: Install AlgoBuilder
win_package:
path: C:\AlgoBuilderSuite.exe
# path: "{{ download.dest }}"
arguments: /Verysilent /AllUsers
# - 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
# - name: Remove temporary files
# win_file:
# path: C:\AlgoBuilderSuite.exe
# # path: "{{ download.dest }}"
# state: absent

View file

@ -1,4 +1,4 @@
- name: Do not install UnicleoGUI
- name: Do not install mems-studio
debug:
msg: "Do not install UnicleoGUI on Linux"
msg: "Do not install mems-studio on Linux"

View file

@ -1,31 +1,35 @@
# TODO check install status
- name: Check UnicleoGUI 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 UnicleoGUI
win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EQG4vStF7ApBsN2TDm5AjGQBiU0iFbZZiz91UqGeHKX9FA?e=QOQky2&download=1" -O C:\Unicleo-GUI_Setup.exe
args:
creates: C:\Unicleo-GUI_Setup.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
# Deprecated - replace by mems-studio
- name: Do not install UnicleoGUI
debug:
msg: "Do not install UnicleoGUI on Windows - deprecated"
# # TODO check install status
# - name: Check UnicleoGUI 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 UnicleoGUI
# win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EQG4vStF7ApBsN2TDm5AjGQBiU0iFbZZiz91UqGeHKX9FA?e=QOQky2&download=1" -O C:\Unicleo-GUI_Setup.exe
# args:
# creates: C:\Unicleo-GUI_Setup.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 UnicleoGUI
win_package:
path: C:\Unicleo-GUI_Setup.exe
# path: "{{ download.dest }}"
arguments: /Verysilent /AllUsers
# - name: Install UnicleoGUI
# win_package:
# path: C:\Unicleo-GUI_Setup.exe
# # path: "{{ download.dest }}"
# arguments: /Verysilent /AllUsers
- name: Remove temporary files
win_file:
path: C:\Unicleo-GUI_Setup.exe
# path: "{{ download.dest }}"
state: absent
# - name: Remove temporary files
# win_file:
# path: C:\Unicleo-GUI_Setup.exe
# # path: "{{ download.dest }}"
# state: absent