From c3a9fe830d164b22e04a0f726a5f65481799b17d Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 29 Jan 2019 19:01:03 -0500 Subject: [PATCH] Update main.yml --- roles/sugarizer/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index cecaa1a23..b432a1a6c 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -1,3 +1,8 @@ +- name: Fail if nodejs_version is not set to {{ nodejs_version }} + fail: + msg: "Sugarizer install cannot proceeed, as it currently requires Node.js 10.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml" + when: sugarizer_install and (nodejs_version != "10.x") + # 0. CLEAN UP PRIOR VERSIONS OF SUGARIZER (NEEDS WORK!) # - name: Wipe /library/www/html/sugarizer* if installing sugarizer-1.0