From 53ea3c93020a3a92e264194d8ff77ccbacec5617 Mon Sep 17 00:00:00 2001 From: martinmicunda Date: Mon, 15 Sep 2014 17:00:26 +0100 Subject: [PATCH] Add nodejs tags --- .travis.yml | 5 +++++ tasks/main.yml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index d4c3512..866ce64 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,11 @@ language: python python: "2.7" +notifications: + email: + on_success: never + on_failure: always + env: - SITE="-i inventory tests/main.yml" diff --git a/tasks/main.yml b/tasks/main.yml index fe9b5fe..4dac303 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: > @@ -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: > @@ -32,3 +37,4 @@ update_cache=yes cache_valid_time={{ apt_cache_valid_time }} when: nodejs_version != "latest" + tags: nodejs