Popravki ob začetku leta - predelani bolj ali manj vsi programi in predmeti
This commit is contained in:
parent
3ddf1d550f
commit
3b801ad089
97 changed files with 1221 additions and 94 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue