1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +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

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