Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 6 hours 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T08:35:34.000Z (3 months ago)
- Last Synced: 2024-08-02T10:02:53.762Z (3 months ago)
- Topics: ansible, debian, node, nodejs, npm, ubuntu
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![tests](https://github.com/boutetnico/ansible-role-nodejs/workflows/Test%20ansible%20role/badge.svg)](https://github.com/boutetnico/ansible-role-nodejs/actions?query=workflow%3A%22Test+ansible+role%22)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-boutetnico.nodejs-blue.svg)](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 - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [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 | `[apt-transport-https,gnupg]` | list | |
| nodejs_version | true | `20.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: yarnTesting
-------molecule test
License
-------MIT
Author Information
------------------[@boutetnico](https://github.com/boutetnico)