1
0
Fork 0
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:
A Holt 2018-07-11 21:49:03 -04:00 committed by GitHub
parent 0ca4f33525
commit fbf55019e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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