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

nlware/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-v12x]: Version to install (e.g. nodejs-v17x, nodejs-v16x, nodejs-v15x, nodejs-v14x, nodejs-v13x, nodejs-v12x, nodejs-v10x, nodejs-v8x, nodejs-v7x, nodejs-v6x, nodejs-v5x, nodejs-v012, nodejs-v010, iojs-v3x, iojs-v2x, iojs-v1x, or a specific version, e.g. 12.18.1)
  • 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:
    - nodejs

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%