mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 04:36:40 +00:00
Role README Credits now name galaxy_info.author (plain bold or wrapped in a Markdown link), matched byte-for-byte against the role's own meta/main.yml, instead of a hard-coded maintainer name. Regenerate all 245 role README Credits blocks to the new 'Implemented by ...' format. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
npm
Description
This Ansible role installs npm and optionally runs npm ci within a given project directory. It is intended to streamline dependency installation for Node.js applications.
Overview
Designed for use in Node-based projects, this role installs npm and can execute a clean install (npm ci) to ensure consistent dependency trees.
Features
- npm Installation: Ensures the
npmpackage manager is installed. - Optional Project Setup: Runs
npm ciin a specified folder to install exact versions frompackage-lock.json. - Idempotent: Skips
npm ciif no folder is configured.
Configuration
Set npm_project_folder to a directory containing package.json and package-lock.json:
vars:
npm_project_folder: /opt/scripts/my-node-project/
License
Infinito.Nexus Community License (Non-Commercial) https://s.infinito.nexus/license
Credits
Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).