Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)!