Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.13 KB

File metadata and controls

58 lines (37 loc) · 1.13 KB

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 12.04 LTS (Precise Pangolin)
  • Ubuntu 14.04 LTS (Trusty Tahr)

Usage

Install the playbook via Ansible Galaxy:

$ ansible-galaxy install nodesource.node

Or using the requirements.yml

# install the role from galaxy
- src: nodesource.node

Which is imported as follows.

ansible-galaxy install -r requirements.yml

Then configure it as follows:

- hosts: servers
  roles:
     - nodesource.node

Role Variables

  • nodejs_version: Supports 0.10 or 0.12 or 4.x or 5.x
  • nodejs_nodesource_pin_priority: Pin-Priority of the NodeSource repository (default: 500).

Testing

To test this role using Docker:

$ docker build .

Author

Mark Wolfe mark@wolfe.id.au

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 file for more details.