Set up the latest version of Node.js and npm in Debian-like systems.
software-properties-common
(will be installed)dirmngr
(will be installed)curl
(will be installed)
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 installnodejs_npm_packages
: [default:[]
]: Node.js packages to install (globally)nodejs_npm_packages.{n}.name
: [required]: The name of the packagenodejs_npm_packages.{n}.version
: [optional]: The version of the package
None
ansible-yarn
(see)
---
- hosts: all
roles:
- oefenweb.nodejs
MIT
Mischa ter Smitten
Are welcome!