mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Update main.yml
This commit is contained in:
parent
0ca4f33525
commit
fbf55019e7
1 changed files with 2 additions and 2 deletions
|
@ -81,13 +81,13 @@
|
||||||
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
||||||
|
|
||||||
# Re-running "npm install" fails on Raspbian 9 if not other OS's
|
# Re-running "npm install" fails on Raspbian 9 if not other OS's
|
||||||
- name: Check for Sugarizer already installed
|
- name: Check for /opt/iiab/{{ sugarizer_server_version }}/node_modules
|
||||||
stat:
|
stat:
|
||||||
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||||
register: nmtest
|
register: nmtest
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Set a flag to abort second attempt to install
|
- name: Set a flag to prevent re-running of "npm install"
|
||||||
set_fact:
|
set_fact:
|
||||||
node_modules_exists: True
|
node_modules_exists: True
|
||||||
when: nmtest.stat is defined and nmtest.stat.exists
|
when: nmtest.stat is defined and nmtest.stat.exists
|
||||||
|
|
Loading…
Reference in a new issue