mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
REGISTRATION_CODE
based on https://docs.remote.it/oem-and-bulk-provisioning/registration-into-a-users-account
This commit is contained in:
parent
853cd445f9
commit
296e8c2032
3 changed files with 13 additions and 0 deletions
|
@ -49,3 +49,4 @@ cli_suffixes:
|
|||
x86_64: x86_64
|
||||
remoteit_cli_suffix: "{{ cli_suffixes[ansible_architecture] | default('unknown') }}"
|
||||
remoteit_cli_url: https://downloads.remote.it/cli/latest/remoteit_linux_{{ remoteit_cli_suffix }}
|
||||
remoteit_REGISTRATION_CODE: none #eg "592AA9BB-68C8-520A-AACA-6E27654C3DF6" generated in the desktop or web portal
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
- name: Using pre-created REGISTRATION_CODE from desktop or web portal
|
||||
shell: echo {{ remoteit_REGISTRATION_CODE }} > /etc/remoteit/registration
|
||||
when: remoteit_REGISTRATION_CODE is not none
|
||||
|
||||
- name: Enable & Restart remote.it "parent" service connectd, which exits after spawning 2 "child" services/daemons below
|
||||
systemd:
|
||||
name: connectd
|
||||
|
@ -31,6 +35,10 @@
|
|||
ignore_errors: yes
|
||||
when: not remoteit_enabled
|
||||
|
||||
- name: Clean up REGISTRATION_CODE from {{ iiab_local_vars_file }} if used
|
||||
shell: sed -i '/remoteit_REGISTRATION_CODE/d' {{ iiab_local_vars_file }}
|
||||
when: remoteit_REGISTRATION_CODE is not none
|
||||
|
||||
# - name: Identify remoteit "Remote tcp connection service" unit file name, including uuid, e.g. remoteit@80:00:01:7F:7E:00:56:36.service
|
||||
# shell: ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@
|
||||
# register: remoteit_service
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
# apt:
|
||||
# deb: "{{ remoteit_device_url }}"
|
||||
|
||||
- name: Going to use pre-created REGISTRATION_CODE from desktop or web portal
|
||||
shell: mkdir /etc/remoteit || true && touch /etc/remoteit/registration
|
||||
when: remoteit_REGISTRATION_CODE is not none
|
||||
|
||||
- name: Install remote.it Device Package for your CPU/OS, using https://downloads.remote.it/remoteit/install_agent.sh
|
||||
shell: curl -L https://downloads.remote.it/remoteit/install_agent.sh | sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue