Commit 2703fe31 authored by rgaudin's avatar rgaudin
Browse files

Using official node instead of raspbian

parent 6bcbf18c
......@@ -2,25 +2,18 @@
- import_tasks: clean_apt.yml
tags: setup
- name: Get nodejs repository installer
- name: download node
get_url:
url: https://deb.nodesource.com/setup_10.x
dest: /tmp/setup_10.x
mode: 0755
url: "{{ mirror }}/dev/node-v10.16.3-linux-armv6l.tar.xz"
dest: /tmp/node-v10.16.3-linux-armv6l.tar.xz
tags: setup
- name: Run nodejs repository installer
command: /tmp/setup_10.x
- name: extract mediawiki
command: tar -C /tmp -x -f /tmp/node-v10.16.3-linux-armv6l.tar.xz
tags: setup
- name: Install nodejs
environment:
RUNLEVEL: 1
apt:
name: nodejs
state: latest
autoremove: yes
autoclean: yes
- name: install node files
command: mv /tmp/node-v10.16.3-linux-armv6l/bin/* /usr/bin/ && mv /tmp/node-v10.16.3-linux-armv6l/include/node /usr/include/ && mv /tmp/node-v10.16.3-linux-armv6l/lib/node_modules /usr/lib/ && ln -s /usr/bin/node /usr/sbin/node
tags: setup
- name: Install dependencies (tex, for MathRenderer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment