Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Commit

Permalink
Minor enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvm committed Feb 2, 2015
1 parent 8e6a023 commit b23e9a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions files/nodejs_trusty.list

This file was deleted.

3 changes: 1 addition & 2 deletions tasks/centos.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- name: Install Node.js and npm
yum: enablerepo=epel state=present
pkg={{ item }}
yum: pkg={{ item }} enablerepo=epel state=present
with_items:
- nodejs
- npm
8 changes: 4 additions & 4 deletions tasks/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
- name: Add APT repo file
copy: src=nodejs_trusty.list dest=/etc/apt/sources.list.d/nodejs.list owner=root group=root mode=0644
- name: Add repo file
template: src=nodejs_ubuntu.list.j2 dest=/etc/apt/sources.list.d/nodejs.list owner=root group=root mode=0644
register: nodejs_list

- name: Add APT repo key
- name: Add repo key
apt_key: id=C7917B12 url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB9316A7BC7917B12 state=present
register: nodejs_key

Expand All @@ -12,6 +12,6 @@
when: nodejs_list.changed == True or nodejs_key.changed == True

- name: Install Node.js and npm
apt: state=present pkg={{ item }}
apt: pkg={{ item }} state=present
with_items:
- nodejs
2 changes: 2 additions & 0 deletions templates/nodejs_ubuntu.list.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu {{ ansible_distribution_release | lower }} main
deb-src http://ppa.launchpad.net/chris-lea/node.js/ubuntu {{ ansible_distribution_release | lower }} main

0 comments on commit b23e9a3

Please sign in to comment.