Skip to content

Commit

Permalink
Several minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Jan 23, 2017
1 parent dddd4a8 commit eb933ea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ python: "2.7"

env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=2.2.1.0
- ANSIBLE_VERSION=2.2.0.0
- ANSIBLE_VERSION=2.1.4
- ANSIBLE_VERSION=2.1.3
- ANSIBLE_VERSION=2.1.2
- ANSIBLE_VERSION=2.1.1.0
Expand Down Expand Up @@ -58,6 +60,11 @@ install:
# Install Ansible.
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install --no-binary ansible ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi

install:
# Install Ansible.
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi

script:
# Check the role/playbook's syntax.
- ansible-playbook -i tests/inventory tests/test.yml --syntax-check
Expand All @@ -80,6 +87,8 @@ script:
&& (echo 'Availability test: pass' && exit 0)
|| (echo 'Availability test: fail' && exit 1)
- if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml || true; fi

notifications:
email: false
hipchat:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/Oefenweb/ansible-nodejs.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-nodejs) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-nodejs-blue.svg)](https://galaxy.ansible.com/tersmitten/nodejs)

Set up the latest version of nodejs and npm in Debian-like systems.
Set up the latest version of [Node.js](https://nodejs.org) and [npm](https://www.npmjs.com) in Debian-like systems.

#### Requirements

Expand All @@ -20,6 +20,10 @@ Set up the latest version of nodejs and npm in Debian-like systems.

None

## Recommended

* `ansible-yarn` ([see](https://github.com/Oefenweb/ansible-yarn))

#### Example

```yaml
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
galaxy_info:
author: Mischa ter Smitten
company: Oefenweb.nl B.V.
description: Set up the latest version of nodejs and npm in Debian-like systems
description: Set up the latest version of Node.js and npm in Debian-like systems
license: MIT
min_ansible_version: 1.6
platforms:
Expand Down
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
- name: add repository and install its signing key
shell: curl -sL https://deb.nodesource.com/setup_{{ nodejs_version_map[nodejs_version] }} | bash -
args:
creates: "/etc/apt/sources.list.d/nodesource.list"
changed_when: false
creates: /etc/apt/sources.list.d/nodesource.list
tags:
- configuration
- nodejs
Expand Down

0 comments on commit eb933ea

Please sign in to comment.