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
1d0c57d6a8
commit
b9e8aee3a0
1 changed files with 6 additions and 6 deletions
|
@ -113,17 +113,17 @@
|
|||
|
||||
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
||||
|
||||
# attempting to reinstall npm is broken on Raspbian 9
|
||||
# re-running "npm install" fails on Raspbian 9
|
||||
- name: Check for Sugarizer already installed
|
||||
stat:
|
||||
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||
register: npm
|
||||
register: nmtest
|
||||
ignore_errors: true
|
||||
|
||||
- name: Set a flag to abort second attempt to install
|
||||
set_fact:
|
||||
npm_exists: True
|
||||
when: npm.stat is defined and npm.stat.exists
|
||||
node_modules_exists: True
|
||||
when: nmtest.stat is defined and nmtest.stat.exists
|
||||
|
||||
- name: Create the express framework for Node.js (OS's other than Fedora 18)
|
||||
shell: npm install
|
||||
|
@ -131,13 +131,13 @@
|
|||
chdir: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
||||
creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||
#creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/server/node_modules"
|
||||
when: not is_F18 and not npm_exists
|
||||
when: not is_F18 and not node_modules_exists
|
||||
|
||||
- name: Create the express framework for Node.js (Fedora 18)
|
||||
shell: npm install
|
||||
args:
|
||||
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||
when: is_F18 and not npm_exists
|
||||
when: is_F18 and not node_modules_exists
|
||||
|
||||
# 5. PLACE CONFIG FILES
|
||||
|
||||
|
|
Loading…
Reference in a new issue