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)
Install the playbook via Ansible Galaxy:
$ ansible-galaxy install nodesource.nodejs
Then configure it as follows:
- hosts: servers
roles:
- nodesource.nodeAdd in packages to the npm_packages variable to install npm packages.
npm_packages:
- bower
- coffee-scriptTo test this role using Docker:
$ docker build .
Mark Wolfe mark@wolfe.id.au
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.