Skip to content

Commit

Permalink
Upgrade to recommended NodeJS version
Browse files Browse the repository at this point in the history
  • Loading branch information
lcobucci committed Oct 17, 2016
1 parent 796033a commit 6a8df83
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tasks/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
# Node.js

- name: Node.js | Install PPA
apt_repository: repo='ppa:chris-lea/node.js' update_cache=yes
- name: Node.js | Install repository key
apt_key:
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
id: "68576280"
state: present

- name: Node.js | Install Repository
apt_repository:
repo: "deb https://deb.nodesource.com/node_4.x trusty main"
state: present
update_cache: yes

- name: Node.js | Install Node.js
apt: pkg=nodejs state=latest

- name: Node.js | Install N node version manager
command: npm install -g n

- name: Node.js | Switch to latest stable version of node
command: n stable

0 comments on commit 6a8df83

Please sign in to comment.