ElaoInfra / ansible-role-npm

0 stars 0 forks source link

Ansible Role: npm

It's part of the ELAO Ansible stack but can be used as a stand alone component.

Requirements

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install elao.npm,2.0

Using ansible galaxy requirements file:

- src:     elao.npm
  version: 2.0

Ansible 1 (no longer maintained)

Using ansible galaxy cli:

ansible-galaxy install elao.npm,1.0

Using ansible galaxy requirements file:

- src:     elao.npm
  version: 1.0

Role Variables

Name Default Type Description
elao_npm_packages [ ] Array Npm packages list

Configuration example

elao_npm_packages:
  - name:     gulp
    version:  3
    global:   true
  - name:     coffee-script
    path:     /app/path
    version:  1.6.1

Package configuration directives : http://docs.ansible.com/npm_module.html

Example playbook

- hosts: servers
  roles:
     - { role: elao.npm }

Licence

MIT

Author information

ELAO (http://www.elao.com/)