mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
- name: Assert that "remoteit_install is sameas true" (boolean not string etc)
|
|
assert:
|
|
that: remoteit_install is sameas true
|
|
fail_msg: "PLEASE SET 'remoteit_install: True' e.g. IN: /etc/iiab/local_vars.yml"
|
|
quiet: yes
|
|
|
|
- name: Assert that "remoteit_enabled | type_debug == 'bool'" (boolean not string etc)
|
|
assert:
|
|
that: remoteit_enabled | type_debug == 'bool'
|
|
fail_msg: "PLEASE GIVE VARIABLE 'remoteit_enabled' A PROPER (UNQUOTED) ANSIBLE BOOLEAN VALUE e.g. IN: /etc/iiab/local_vars.yml"
|
|
quiet: yes
|
|
|
|
|
|
- name: Install remoteit if 'remoteit_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
|
include_tasks: install.yml
|
|
when: remoteit_installed is undefined
|
|
|
|
|
|
- include_tasks: enable-or-disable.yml
|
|
|
|
|
|
- name: Add 'remoteit' variable values to {{ iiab_ini_file }}
|
|
ini_file:
|
|
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
|
section: remoteit
|
|
option: "{{ item.option }}"
|
|
value: "{{ item.value | string }}"
|
|
with_items:
|
|
- option: name
|
|
value: Remote It
|
|
- option: description
|
|
value: '"remote.it allows you to make secure remote connections between two computers. Some of the benefits include:
|
|
Crossing multiple NATs/firewallsUsing a single TCP portportforwardless: without requiring port forwarding in the router, significantly reducing your network''s vulnerability."'
|
|
- option: remoteit_install
|
|
value: "{{ remoteit_install }}"
|
|
- option: remoteit_enabled
|
|
value: "{{ remoteit_enabled }}"
|