Skip to content

Ansible role to set up the latest version of Node.js and npm in Debian-like systems

License

Notifications You must be signed in to change notification settings

Oefenweb/ansible-nodejs

Repository files navigation

nodejs

CI Ansible Galaxy

Set up the latest version of Node.js and npm 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)

Example

---
- hosts: all
  roles:
    - oefenweb.nodejs

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!