mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update main.yml
This commit is contained in:
parent
5fed3a3622
commit
97ebf110f3
1 changed files with 6 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
- name: Wipe /library/www/html/sugarizer* if installing sugarizer-1.0
|
||||
shell: "rm -rf {{ doc_root }}/sugarizer*"
|
||||
args:
|
||||
warn: no
|
||||
when: sugarizer_version == "sugarizer-1.0"
|
||||
|
||||
# 1. DOWNLOAD+LINK /opt/iiab/sugarizer
|
||||
|
@ -86,13 +88,12 @@
|
|||
# where it upgrades /usr/bin/npm in place:
|
||||
# https://askubuntu.com/questions/1036278/npm-is-incorrect-version-on-latest-ubuntu-18-04-installation
|
||||
|
||||
- name: Install Node.js and npm (ubuntu-18 or not debuntu)
|
||||
- name: Install latest packages nodejs and npm (ubuntu-18 or not debuntu)
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
state: latest
|
||||
with_items:
|
||||
- nodejs
|
||||
- npm
|
||||
when: internet_available and (is_ubuntu_18 or not is_debuntu)
|
||||
|
||||
# 4. RUN "npm install" TO POPULATE ~35MB /opt/iiab/sugarizer-server/node_modules
|
||||
|
|
Loading…
Reference in a new issue