https://github.com/boutetnico/ansible-role-nodejs
Install NodeJS with Ansible.
https://github.com/boutetnico/ansible-role-nodejs
ansible debian node nodejs npm ubuntu
Last synced: 3 months ago
JSON representation
Install NodeJS with Ansible.
- Host: GitHub
- URL: https://github.com/boutetnico/ansible-role-nodejs
- Owner: boutetnico
- License: mit
- Created: 2020-12-21T09:33:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-01-27T09:18:02.000Z (5 months ago)
- Last Synced: 2026-01-27T21:43:38.308Z (5 months ago)
- Topics: ansible, debian, node, nodejs, npm, ubuntu
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/boutetnico/ansible-role-nodejs/actions?query=workflow%3A%22Test+ansible+role%22)
[](https://galaxy.ansible.com/boutetnico/nodejs)
ansible-role-nodejs
===================
This role installs [NodeJS](https://nodejs.org/en/).
Requirements
------------
Ansible 2.10 or newer.
Supported Platforms
-------------------
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Debian - 13 (Trixie)](https://wiki.debian.org/DebianTrixie)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)
- [Ubuntu - 24.04 (Noble Numbat)](http://releases.ubuntu.com/24.04/)
Role Variables
--------------
| Variable | Required | Default | Choices | |
|------------------------------|----------|-------------------------------|-----------|-------------------------------------|
| nodejs_dependencies | true | `[gnupg]` | list | |
| nodejs_version | true | `24.x` | string | |
| nodejs_package_state | true | `present` | string | Use `latest` to upgrade. |
| nodejs_global_npm_packages | true | `[]` | list | Global NPM packages to install. |
Dependencies
------------
None
Example Playbook
----------------
- hosts: all
roles:
- role: ansible-role-nodejs
nodejs_global_npm_packages:
- name: npm-check-updates
version: 10.2.5
- name: yarn
Testing
-------
molecule test
License
-------
MIT
Author Information
------------------
[@boutetnico](https://github.com/boutetnico)