mm0.npm

Ansible Role: NPM v1.0

Build Status

An Ansible role that sets up npm for nodejs, npm and optionally installs packages for you

Requirements

None

Role Variables

Available variables are listed below, along with default values:

npm_modules:  # list of npm modules to install/remove
- name: npm
  state: latest # latest/present/absent
  global: yes # or no

node_version: 0.10 # defaults to 0.10, used to configure apt repository

distro: trusty # used to specify ubuntu distro

Dependencies

None

Example Playbook

- hosts: webservers
  vars:
        - npm_modules_to_install:
            - name: npm
                state: latest
                global: yes
            - name: grunt-cli
                state: latest
                global: yes
  roles:
  - { role: ansible-role-npm, node_modules: "{{ npm_modules_to_install }}" }

License

BSD-2

Author Information

Matt Margolin

mm0 on github

About

An Ansible role that install npm package manager for node 0.10 and allows you to install different packages all-in-one

Install
ansible-galaxy install mm0.npm
GitHub repository
License
Unknown
Downloads
69