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:
parent
47aae3661f
commit
43147e3f59
1 changed files with 26 additions and 18 deletions
|
@ -26,11 +26,12 @@
|
||||||
var: yarn_installed
|
var: yarn_installed
|
||||||
|
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
- name: Install Yarn if 'yarn_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
- name: Install Yarn if 'yarn_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: yarn_installed is undefined
|
when: yarn_installed is undefined
|
||||||
|
|
||||||
|
|
||||||
- name: Add 'yarn' variable values to {{ iiab_ini_file }}
|
- name: Add 'yarn' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
||||||
|
@ -46,3 +47,10 @@
|
||||||
value: "{{ yarn_install }}"
|
value: "{{ yarn_install }}"
|
||||||
- option: yarn_enabled
|
- option: yarn_enabled
|
||||||
value: "{{ 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
|
||||||
|
|
Loading…
Reference in a new issue