Fix Arduino IDE install

This commit is contained in:
Timotej Lazar 2022-09-28 09:28:22 +00:00
parent 3b9f4800b5
commit 67154de88a

View file

@ -1,27 +1,7 @@
# TODO fix this
- name: Install Arduino IDE - name: Install Arduino IDE
win_package: win_package:
path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.msi path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.exe
arguments: "ALLUSERS=1" arguments: /S /AllUsers
creates_path: "%ProgramFiles%\\Arduino IDE\\Arduino IDE.exe"
#- name: Check Arduino IDE install status # TODO check if anything else is needed (esp8266com)?
# win_stat:
# path: C:\Program Files (x86)\Thonny\thonny.exeee
# register: file
#
#- when: not file.stat.exists
# block:
# # win_package fails to download for some reason
# - name: Download Arduino IDE
# win_get_url:
# url: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.msi
# dest: C:\
# register: download
#
# - name: Install Arduino IDE
# win_command: cmd.exe /k {{ download.dest }} /quiet /qn
#
# - name: Remove temporary files
# win_file:
# path: "{{ download.dest }}"
# state: absent