Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nodesource/ansible-nodejs-role

Ansible Role for Node.js Binary Install
https://github.com/nodesource/ansible-nodejs-role

Last synced: about 1 month ago
JSON representation

Ansible Role for Node.js Binary Install

Awesome Lists containing this project

README

        

# ansible-nodejs-role

This is an Ansible role which adds the the NodeSource APT repository and installs Node.js.

Currently this role supports the following operating systems and releases.

* **Ubuntu 14.04 LTS** (Trusty Tahr)
* **Ubuntu 16.04 LTS** (Xenial Xerus)

## Usage

You can either:

* Install the playbook via Ansible Galaxy:

```text
$ ansible-galaxy install nodesource.node
```

* Install the using [requirements.yml via Ansible Galaxy](http://docs.ansible.com/ansible/galaxy.html#installing-multiple-roles-from-a-file):

```yml
- src: https://github.com/nodesource/ansible-nodejs-role
```

```text
$ ansible-galaxy install -r requirements.txt
```

## Configure

Then configure it as follows:

```yaml
- hosts: servers
roles:
- nodesource.node
```

## Role Variables

- `nodejs_nodesource_pin_priority`: Pin-Priority of the NodeSource repository (default: `500`).
- `nodejs_version`: Set Node version (options: `0.10` or `0.12` or `4.6`, default: `4.6`)

## Testing

To test this role using [molecule](https://github.com/metacloud/molecule):

```
$ make
$ molecule test
```

## Author

Mark Wolfe

## License

This code is Copyright (c) 2014 NodeSource and Mark Wolfe and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included [LICENSE.md](./LICENSE.md) file for more details.