1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

use gitea as a template

This commit is contained in:
Jerry Vonau 2021-10-28 02:09:24 -05:00
parent c3edc88ec3
commit bf923d9285
2 changed files with 32 additions and 2 deletions

View file

@ -7,5 +7,25 @@
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# See https://docs.remote.it/cli/overview to refine either value below:
remoteit_cli_url: https://downloads.remote.it/cli/latest/remoteit_linux_armv7
remoteit_device_url: https://downloads.remote.it/remoteit/v4.13.5/remoteit-4.13.5.armhf.rpi.deb
iset_suffixes:
x86_64: amd64
aarch64: arm64
armv8: arm64.rpi
armv6: armhf.rpi
armv6l: armhf.rpi
armv7: armhf.rpi
armv7l: armhf.rpi
remoteit_iset_suffix: "{{ iset_suffixes[ansible_architecture] | default('unknown') }}"
remoteit_device_url: https://downloads.remote.it/remoteit/v4.13.5/remoteit-4.13.5.{{ remoteit_iset_suffix }}.deb
iset_suffixes2:
x86_64: amd64
aarch64: arm64
armv6: armv6
armv6l: armv6
armv7: armv7
armv7l: armv7
armv8: arm64
remoteit_iset_suffix2: "{{ iset_suffixes[ansible_architecture] | default('unknown') }}"
remoteit_cli_url: https://downloads.remote.it/cli/latest/remoteit_linux_{{ remoteit_iset_suffix2 }}

View file

@ -1,3 +1,13 @@
- name: Fail if we detect unknown architecture
fail:
msg: "Could not find a binary for the CPU architecture \"{{ ansible_architecture }}\""
when: remoteit_iset_suffix == "unknown"
- name: Fail if we detect unknown architecture
fail:
msg: "Could not find a binary for the CPU architecture \"{{ ansible_architecture }}\""
when: remoteit_iset_suffix2 == "unknown"
- name: Download the command line interface for this device to /usr/bin/{{ remoteit_cli_url }} (755)
get_url:
url: '{{ remoteit_cli_url }}'