1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

softcode deb name

This commit is contained in:
Jerry Vonau 2021-10-28 04:23:28 -05:00
parent 4ac9e2d037
commit 54c92982ff
2 changed files with 7 additions and 6 deletions

View file

@ -7,6 +7,7 @@
# 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_version: 4.13.5
iset_suffixes:
x86_64: amd64
aarch64: arm64
@ -16,7 +17,8 @@ iset_suffixes:
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
remoteit_deb: remoteit-{{ remoteit_version }}.{{ remoteit_iset_suffix }}.deb
remoteit_device_url: https://downloads.remote.it/remoteit/v{{ remoteit_version }}/{{ remoteit_deb }}
iset_suffixes2:
x86_64: amd64
@ -27,5 +29,4 @@ iset_suffixes2:
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

@ -17,16 +17,16 @@
- name: Download {{ remoteit_device_url }} device package to {{ downloads_dir }}
get_url:
url: '{{ remoteit_device_url }}'
dest: '{{ downloads_dir }}'
dest: '{{ downloads_dir }}/'
- name: Uninstall the device package {{ remoteit_device_url | basename }}
apt:
name: '{{ remoteit_device_url | basename }}'
name: '{{ remoteit_deb }}'
state: absent
- name: Install device package {{ downloads_dir }}/{{ remoteit_device_url | basename }}
- name: Install device package {{ downloads_dir }}/{{ remoteit_deb }}
apt:
deb: '{{ downloads_dir }}/{{ remoteit_device_url | basename }}'
deb: '{{ downloads_dir }}/{{ remoteit_deb }}'
state: present