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-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 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:
- nodejs
MIT
Mischa ter Smitten
Are welcome!