Skip to content
Snippets Groups Projects
Commit 19afd3e4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
---
dependencies:
- { role: common }
---
# file: roles/nodejs/tasks/main.yml
#
# node.js installation (latest stable instead of Ubuntu's out-of-date one)
- name: "nodeJS | Install required packages"
apt: pkg={{item}} state=installed update_cache=yes
with_items:
- python-software-properties
- name: "nodeJS | Add repository"
apt_repository: repo='ppa:chris-lea/node.js'
- name: "nodeJS | Install core packages"
apt: pkg={{item}} state=installed update_cache=yes
with_items:
- nodejs
- npm
#see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint
#
#sudo apt-get update
#sudo apt-get install python-software-properties python g++ make
#sudo add-apt-repository ppa:chris-lea/node.js
#sudo apt-get update
#sudo apt-get install nodejs
#
#It installs current stable Node on the current stable Ubuntu. Quantal (12.10) users may need to install the software-properties-common package for the add-apt-repository command to work: sudo apt-get install software-properties-common
#
#As of Node.js v0.10.0, the nodejs package from Chris Lea's repo includes both npm and nodejs-dev.
#
#There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from node to nodejs. You'll need to symlink /usr/bin/node to /usr/bin/nodejs or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment