Initialize Arduino IDE setup
This commit is contained in:
parent
e525bf9850
commit
0cfbf63221
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.retry
|
@ -3,5 +3,7 @@
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become_method: sudo
|
||||
become: yes
|
||||
roles:
|
||||
- role: common
|
||||
- role: arduino
|
||||
|
4
roles/arduino/defaults/main.yml
Normal file
4
roles/arduino/defaults/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
arduino_version: "1.8.18"
|
||||
arduino_ide_url: "https://downloads.arduino.cc/arduino-{{ arduino_version }}-linuxarm.tar.xz"
|
||||
arduino_download_directory: /opt/arduino
|
11
roles/arduino/tasks/main.yml
Normal file
11
roles/arduino/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: "Install arduino needed packages"
|
||||
apt:
|
||||
name:
|
||||
- picocom
|
||||
- python-pip
|
||||
state: latest
|
||||
|
||||
- name: "install inotool with pip"
|
||||
pip:
|
||||
name: ino
|
@ -1,4 +1,9 @@
|
||||
---
|
||||
- name: "Update apt-cache"
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: "Install common packages"
|
||||
apt:
|
||||
name:
|
||||
@ -17,6 +22,4 @@
|
||||
- wget
|
||||
- whois
|
||||
- xclip
|
||||
state: present
|
||||
update_cache: yes
|
||||
become: yes
|
||||
state: latest
|
||||
|
Loading…
Reference in New Issue
Block a user