add arduino
This commit is contained in:
parent
4d0616ff73
commit
a04208fc11
4 changed files with 31 additions and 0 deletions
|
|
@ -26,6 +26,9 @@
|
|||
- role: inkscape
|
||||
tags:
|
||||
- inkscape
|
||||
- role: fablab
|
||||
tags:
|
||||
- fablab
|
||||
vars:
|
||||
auth:
|
||||
sudo:
|
||||
|
|
@ -45,3 +48,6 @@
|
|||
tasksel:
|
||||
- english
|
||||
- german
|
||||
fablab:
|
||||
arduino:
|
||||
version: 1.8.5
|
||||
|
|
|
|||
11
packer/ansible/roles/fablab/tasks/arduino.yml
Normal file
11
packer/ansible/roles/fablab/tasks/arduino.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: download and extract arduino
|
||||
unarchive:
|
||||
src: "https://downloads.arduino.cc/arduino-{{ fablab.arduino.version }}-linux64.tar.xz"
|
||||
dest: /opt/
|
||||
remote_src: yes
|
||||
- name: install .desktop file
|
||||
template:
|
||||
src: arduino.desktop.j2
|
||||
dest: /usr/share/applications/arduino.dekstop
|
||||
|
||||
4
packer/ansible/roles/fablab/tasks/main.yml
Normal file
4
packer/ansible/roles/fablab/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- import_tasks: arduino.yml
|
||||
tags:
|
||||
- fablab:arduino
|
||||
10
packer/ansible/roles/fablab/templates/arduino.desktop.j2
Normal file
10
packer/ansible/roles/fablab/templates/arduino.desktop.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Arduino IDE
|
||||
GenericName=Create physical computing projects
|
||||
Exec=/opt/arduino-{{ fablab.arduino.version }}/arduino
|
||||
Icon=/opt/arduino-{{ fablab.arduino.version }}/lib/icons/128x128/apps/arduino.png
|
||||
Terminal=false
|
||||
Categories=Development;Engineering;Electronics;
|
||||
MimeType=text/x-arduino
|
||||
Keywords=embedded electronics;electronics;avr;microcontroller;
|
||||
Loading…
Add table
Add a link
Reference in a new issue