Ansible Role for Node.js Binary Install
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.
You can either:
$ ansible-galaxy install nodesource.node
- src: https://github.com/nodesource/ansible-nodejs-role
$ ansible-galaxy install -r requirements.txt
Then configure it as follows:
- hosts: servers roles: - nodesource.node
nodejs_nodesource_pin_priority: Pin-Priority of the NodeSource repository (default:
nodejs_version: Set Node version (options:
To test this role using molecule:
$ make $ molecule test
Mark Wolfe [email protected]
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.