mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
33 lines
1,006 B
YAML
33 lines
1,006 B
YAML
- name: Download the command line interface for this device to /usr/bin/{{ remoteit_cli_url }} (755)
|
|
get_url:
|
|
url: '{{ remoteit_cli_url }}'
|
|
dest: /usr/bin/
|
|
mode: 0755
|
|
|
|
- name: Download {{ remoteit_device_url }} device package to {{ downloads_dir }}
|
|
get_url:
|
|
url: '{{ remoteit_device_url }}'
|
|
dest: '{{ downloads_dir }}'
|
|
|
|
- name: Uninstall the device package {{ remoteit_device_url | basename }}
|
|
apt:
|
|
name: '{{ remoteit_device_url | basename }}'
|
|
state: absent
|
|
|
|
- name: Install device package {{ downloads_dir }}/{{ remoteit_device_url | basename }}
|
|
apt:
|
|
deb: '{{ downloads_dir }}/{{ remoteit_device_url | basename }}'
|
|
state: present
|
|
|
|
|
|
# RECORD remoteit AS INSTALLED
|
|
|
|
- name: "Set 'openvpn_installed: True'"
|
|
set_fact:
|
|
remoteit_installed: True
|
|
|
|
- name: "Add 'remoteit_installed: True' to {{ iiab_state_file }}"
|
|
lineinfile:
|
|
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
|
regexp: '^remoteit_installed'
|
|
line: 'remoteit_installed: True'
|