1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Install dweb-mirror from npm not from github (which may have unstable version)

This commit is contained in:
Mitra Ardron 2019-04-23 13:33:22 +10:00
parent a1759b969f
commit 62c40aafa5

View file

@ -2,17 +2,9 @@
- name: FAIL (STOP INSTALLING) IF nodejs_version is not set to 10.x
fail:
msg: "Archorg install cannot proceeed, as it currently requires Node.js 10.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
msg: "Internet Archive install cannot proceeed, as it currently requires Node.js 10.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
when: internetarchive_install and (nodejs_version != "10.x")
- name: Clone distributed web mirror supported by Internet Archive
git:
repo: https://github.com/internetarchive/dweb-mirror
dest: "{{ internetarchive_dir }}"
force: yes
depth: 1
when: internet_available
- name: Install packages needed by Distributed Web
package:
name:
@ -20,11 +12,11 @@
- cmake
state: present
- name: Run 'sudo npm install --allow-root --unsafe-perm=true' to create /opt/iiab/internetarchive/node_modules (CAN TAKE ~5 MINUTES)
command: sudo npm install --allow-root --unsafe-perm=true
- name: Run 'sudo npm install dweb-archive dweb-mirror --allow-root --unsafe-perm=true' to create /opt/iiab/internetarchive/node_modules (CAN TAKE ~5 MINUTES)
command: sudo npm install dweb-archive dweb-mirror --allow-root --unsafe-perm=true
args:
chdir: "{{ internetarchive_dir }}"
when: internet_available
# CONFIG FILES