Browse Source

Initialize Arduino IDE setup

master
Jeckel 6 months ago
parent
commit
0cfbf63221
5 changed files with 24 additions and 3 deletions
  1. 1
    0
      .gitignore
  2. 2
    0
      raspberry-lab.yml
  3. 4
    0
      roles/arduino/defaults/main.yml
  4. 11
    0
      roles/arduino/tasks/main.yml
  5. 6
    3
      roles/common/tasks/main.yml

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+*.retry

+ 2
- 0
raspberry-lab.yml View File

@@ -3,5 +3,7 @@
3 3
   hosts: localhost
4 4
   connection: local
5 5
   become_method: sudo
6
+  become: yes
6 7
   roles:
7 8
     - role: common
9
+    - role: arduino

+ 4
- 0
roles/arduino/defaults/main.yml View File

@@ -0,0 +1,4 @@
1
+---
2
+arduino_version: "1.8.18"
3
+arduino_ide_url: "https://downloads.arduino.cc/arduino-{{ arduino_version }}-linuxarm.tar.xz"
4
+arduino_download_directory: /opt/arduino

+ 11
- 0
roles/arduino/tasks/main.yml View File

@@ -0,0 +1,11 @@
1
+---
2
+- name: "Install arduino needed packages"
3
+  apt:
4
+    name:
5
+      - picocom
6
+      - python-pip
7
+    state: latest
8
+    
9
+- name: "install inotool with pip"
10
+  pip:
11
+    name: ino

+ 6
- 3
roles/common/tasks/main.yml View File

@@ -1,4 +1,9 @@
1 1
 ---
2
+- name: "Update apt-cache"
3
+  apt: 
4
+    update_cache: yes
5
+    cache_valid_time: 3600
6
+
2 7
 - name: "Install common packages"
3 8
   apt:
4 9
     name:
@@ -17,6 +22,4 @@
17 22
       - wget
18 23
       - whois
19 24
       - xclip
20
-    state: present
21
-    update_cache: yes
22
-  become: yes
25
+    state: latest    

Loading…
Cancel
Save