Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/stm32cube/tasks/main.yml
Normal file
4
roles/stm32cube/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
3
roles/stm32cube/tasks/main_lin.yml
Normal file
3
roles/stm32cube/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
# TODO download stm32; deb install
|
||||
# https://www.st.com/en/development-tools/stm32cubeide.html#get-software
|
||||
|
23
roles/stm32cube/tasks/main_win.yml
Normal file
23
roles/stm32cube/tasks/main_win.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
- name: Check WinIDEA install status
|
||||
win_stat:
|
||||
path: C:\iSYSTEM\winIDEA9\winIDEA.exe
|
||||
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 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
|
Loading…
Add table
Add a link
Reference in a new issue