classroom/roles/winroom/tasks/arduino.yml

28 lines
931 B
YAML

# TODO fix this
- name: Install Arduino IDE
win_package:
path: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Windows_64bit.msi
arguments: "ALLUSERS=1"
#- name: Check Arduino IDE install status
# 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