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
2
roles/stm32duino/meta/main.yml
Normal file
2
roles/stm32duino/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: arduino
|
4
roles/stm32duino/tasks/main.yml
Normal file
4
roles/stm32duino/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'
|
13
roles/stm32duino/tasks/main_lin.yml
Normal file
13
roles/stm32duino/tasks/main_lin.yml
Normal 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
|
||||
#
|
8
roles/stm32duino/tasks/main_win.yml
Normal file
8
roles/stm32duino/tasks/main_win.yml
Normal 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)?
|
Loading…
Add table
Add a link
Reference in a new issue