manala.npm
#######################################################################################################
:exclamation: DEPRECATION :exclamation:
This repository and the role associated are deprecated in favor of the Manala Ansible Collection
You will find informations on its usage on the collection repository
#######################################################################################################
Ansible Role: Npm 
:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:
This role will deal with the handling of global npm packages.
It's part of the Manala Ansible stack but can be used as a stand alone component.
Requirements
None.
Dependencies
None.
Installation
Ansible 2+
Using ansible galaxy cli:
ansible-galaxy install manala.npm
Using ansible galaxy requirements file:
- src: manala.npm
Role Variables
| Name | Default | Type | Description |
|---|---|---|---|
manala_npm_packages |
[] | Array | Global npm packages list |
manala_npm.update |
false | Boolean | Update global npm packages |
Configuration example
manala_npm_packages:
- yarn # Lightweight syntax
- name: gulp
version: 3
- name: grunt
state: absent
Flags
Update global packages
manala_npm:
update: true
# Can also be set across manala roles
manala:
update: true
Example playbook
- hosts: servers
roles:
- role: manala.npm
Licence
MIT
Author information
Manala (http://www.manala.io/)
Install
ansible-galaxy install manala.npmLicense
Unknown
Downloads
7.4k
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.
