1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

remoteit/tasks/install.yml: Defer deletion of /etc/remoteit/registration

This commit is contained in:
A Holt 2022-10-09 15:09:10 -04:00 committed by GitHub
parent 0d646a2b85
commit 5cd2187796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@
state: directory
path: /etc/remoteit
- name: "'touch /etc/remoteit/registration' to block generation of claim code below, also speeding things up a bit"
- name: "'touch /etc/remoteit/registration' (might contain a remoteit_license_key) to prevent generation of claim code below; also speeding things up a bit"
file:
state: touch
path: /etc/remoteit/registration
@ -86,11 +86,13 @@
when: is_linuxmint
- name: "'rm /etc/remoteit/registration' (empty file used just above)"
file:
state: absent
path: /etc/remoteit/registration
ignore_errors: yes # In case a future version of install_agent.sh deletes it for us
# 2022-10-09: Let's keep the file (empty or not!) If it exists with size zero
# bytes, enable-or-disable.yml or /usr/bin/iiab-remoteit delete it later as nec.
# - name: "'rm /etc/remoteit/registration' (empty file used just above)"
# file:
# state: absent
# path: /etc/remoteit/registration
# ignore_errors: yes # In case a future version of install_agent.sh deletes it for us
- name: Install /usr/bin/iiab-remoteit from template -- so IIAB operators can quickly enable remote.it AND generate a new remote.it claim code (in /etc/remoteit/config.json) -- optionally downloading + installing the very latest Device Package (like the 2 steps above)