Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nodesource/ansible-nodejs-role
- Owner: nodesource
- License: mit
- Created: 2014-08-14T03:01:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T08:45:25.000Z (over 6 years ago)
- Last Synced: 2024-04-27T23:59:13.580Z (5 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 131
- Watchers: 11
- Forks: 47
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.