1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

yarn/tasks/main.yml: Support skip_role_on_error flag

This commit is contained in:
root 2022-06-18 17:04:13 -04:00
parent 47aae3661f
commit 43147e3f59

View file

@ -26,11 +26,12 @@
var: yarn_installed
- block:
- name: Install Yarn if 'yarn_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml
when: yarn_installed is undefined
- name: Add 'yarn' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
@ -46,3 +47,10 @@
value: "{{ yarn_install }}"
- option: yarn_enabled
value: "{{ yarn_enabled }}"
rescue:
- name: 'SEE ERROR ABOVE (skip_role_on_error: {{ skip_role_on_error }})'
fail:
msg: ""
when: not skip_role_on_error