diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8b42eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.retry diff --git a/raspberry-lab.yml b/raspberry-lab.yml index 4c51098..2703281 100644 --- a/raspberry-lab.yml +++ b/raspberry-lab.yml @@ -3,5 +3,7 @@ hosts: localhost connection: local become_method: sudo + become: yes roles: - role: common + - role: arduino diff --git a/roles/arduino/defaults/main.yml b/roles/arduino/defaults/main.yml new file mode 100644 index 0000000..cac3ef9 --- /dev/null +++ b/roles/arduino/defaults/main.yml @@ -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 diff --git a/roles/arduino/tasks/main.yml b/roles/arduino/tasks/main.yml new file mode 100644 index 0000000..a4ad044 --- /dev/null +++ b/roles/arduino/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: "Install arduino needed packages" + apt: + name: + - picocom + - python-pip + state: latest + +- name: "install inotool with pip" + pip: + name: ino diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index a8920ae..aee454d 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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