Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oefenweb/ansible-nodejs
Ansible role to set up the latest version of Node.js and npm in Debian-like systems
https://github.com/oefenweb/ansible-nodejs
ansible debian javascript nodejs package-manager ubuntu
Last synced: 2 months ago
JSON representation
Ansible role to set up the latest version of Node.js and npm in Debian-like systems
- Host: GitHub
- URL: https://github.com/oefenweb/ansible-nodejs
- Owner: Oefenweb
- License: mit
- Created: 2014-09-24T19:47:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T12:21:40.000Z (3 months ago)
- Last Synced: 2024-11-07T12:34:13.707Z (3 months ago)
- Topics: ansible, debian, javascript, nodejs, package-manager, ubuntu
- Language: Dockerfile
- Homepage:
- Size: 105 KB
- Stars: 15
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## nodejs
[![CI](https://github.com/Oefenweb/ansible-nodejs/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-nodejs/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-nodejs-blue.svg)](https://galaxy.ansible.com/Oefenweb/nodejs)Set up the latest version of [Node.js](https://nodejs.org) and [npm](https://www.npmjs.com) in Debian-like systems.
#### Requirements
* `software-properties-common` (will be installed)
* `dirmngr` (will be installed)
* `curl` (will be installed)#### Variables
* `nodejs_version` [default: `nodejs-v16x`]: Version to install (e.g. `nodejs-v23x`, ..., `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`
* `nodejs_install` [default: `['build-essential']`]: Packages to install
* `nodejs_npm_packages`: [default: `[]`]: Node.js packages to install (globally)
* `nodejs_npm_packages.{n}.name`: [required]: The name of the package
* `nodejs_npm_packages.{n}.version`: [optional]: The version of the package## Dependencies
None
## Recommended
* `ansible-yarn` ([see](https://github.com/Oefenweb/ansible-yarn))
#### Example
```yaml
---
- hosts: all
roles:
- oefenweb.nodejs
```#### License
MIT
#### Author Information
Mischa ter Smitten
#### Feedback, bug-reports, requests, ...
Are [welcome](https://github.com/Oefenweb/ansible-nodejs/issues)!