1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

exploration of using ansible on an interactive device install. No work

This commit is contained in:
George Hunt 2021-10-27 22:29:31 +01:00
parent c4d6597d74
commit 8123c5dfb1
2 changed files with 23 additions and 1 deletions

12
roles/remoteit/README.md Normal file
View file

@ -0,0 +1,12 @@
# Installing Remoteit on a Raspberry Pi
1. Set remoteit_install and remoteit_enabled to True in /etc/local_vars.yml.
2 Run the role that installs remote.it.`
```
./runroles remoteit
```
3. The last step installs the remoteit code. But the last part of the install is designed to be interactive, and returns a registration code which i required to make the connection from your remoteit global registration. So run the last step to retrieve and record the registration number.
```
cd /opt/iiab/downloads
apt reinstall ./remoteit-4.13.5.armhf.rpi.deb
```
3. After you have installed the remote.it client desktop on your laptop, click on the + icon, and enter the registration number displayed in step #3.

View file

@ -4,9 +4,19 @@
dest: /usr/bin/
mode: 0755
- name: Fetch the remoteit device package
get_url:
url: '{{ remoteit_device_url }}'
dest: '{{ downloads_dir }}'
- name: uninstall the device package
apt:
name: '{{ remoteit_device_url | basename }}'
state: absent
- name: Install the device package
apt:
deb: '{{ remoteit_device_url }}'
deb: '{{ downloads_dir }}/{{ remoteit_device_url | basename }}'
state: present
# RECORD remoteit AS INSTALLED