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
|
# 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
|
- name: Check for Sugarizer already installed
|
||||||
stat:
|
stat:
|
||||||
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
path: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||||
register: npm
|
register: nmtest
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Set a flag to abort second attempt to install
|
- name: Set a flag to abort second attempt to install
|
||||||
set_fact:
|
set_fact:
|
||||||
npm_exists: True
|
node_modules_exists: True
|
||||||
when: npm.stat is defined and npm.stat.exists
|
when: nmtest.stat is defined and nmtest.stat.exists
|
||||||
|
|
||||||
- name: Create the express framework for Node.js (OS's other than Fedora 18)
|
- name: Create the express framework for Node.js (OS's other than Fedora 18)
|
||||||
shell: npm install
|
shell: npm install
|
||||||
|
@ -131,13 +131,13 @@
|
||||||
chdir: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
chdir: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
||||||
creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/node_modules"
|
||||||
#creates: "{{ sugarizer_location }}/{{ sugarizer_server_version }}/server/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)
|
- name: Create the express framework for Node.js (Fedora 18)
|
||||||
shell: npm install
|
shell: npm install
|
||||||
args:
|
args:
|
||||||
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||||
when: is_F18 and not npm_exists
|
when: is_F18 and not node_modules_exists
|
||||||
|
|
||||||
# 5. PLACE CONFIG FILES
|
# 5. PLACE CONFIG FILES
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue