1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

remoteit/tasks/main.yml: Use skip_role_on_error

This commit is contained in:
A Holt 2022-10-09 16:34:04 -04:00 committed by GitHub
parent 84397e67b2
commit 865d2434eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,11 +11,12 @@
quiet: yes
- block:
- 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: Extract claim code from /etc/remoteit/config.json if it exists
@ -39,3 +40,10 @@
value: "{{ remoteit_enabled }}"
# - option: remoteit_claim_code
# value: "{{ remoteit_claim_code.stdout }}"
rescue:
- name: 'SEE ERROR ABOVE (skip_role_on_error: {{ skip_role_on_error }})'
fail:
msg: ""
when: not skip_role_on_error