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
|
hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
become_method: sudo
|
become_method: sudo
|
||||||
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- role: common
|
- 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"
|
- name: "Install common packages"
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
@ -17,6 +22,4 @@
|
|||||||
- wget
|
- wget
|
||||||
- whois
|
- whois
|
||||||
- xclip
|
- xclip
|
||||||
state: present
|
state: latest
|
||||||
update_cache: yes
|
|
||||||
become: yes
|
|
||||||
|
Loading…
Reference in New Issue
Block a user