Skip to content

Commit

Permalink
Add nodejs tags
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmicunda committed Sep 15, 2014
1 parent a4c871a commit 53ea3c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
language: python
python: "2.7"

notifications:
email:
on_success: never
on_failure: always

env:
- SITE="-i inventory tests/main.yml"

Expand Down
6 changes: 6 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
- name: Ensure the system can use the HTTPS transport for APT
stat: path=/usr/lib/apt/methods/https
register: apt_https_transport
tags: nodejs

- name: Install HTTPS transport for APT
apt: pkg=apt-transport-https state=installed
when: not apt_https_transport.stat.exists
tags: nodejs

- name: Import the NodeSource GPG key into apt
apt_key: >
url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key
state=present
tags: nodejs

- name: Add NodeSource deb repository
apt_repository: >
repo='deb https://deb.nodesource.com/node {{ ansible_distribution_release }} main'
state=present
tags: nodejs

- name: Install latest Node.js and NPM
apt: >
Expand All @@ -24,6 +28,7 @@
update_cache=yes
cache_valid_time={{ apt_cache_valid_time }}
when: nodejs_version == "latest"
tags: nodejs

- name: Install specific verion of Node.js and NPM
apt: >
Expand All @@ -32,3 +37,4 @@
update_cache=yes
cache_valid_time={{ apt_cache_valid_time }}
when: nodejs_version != "latest"
tags: nodejs

0 comments on commit 53ea3c9

Please sign in to comment.