ElaoInfra.npm

Ansible Role: npm

This is a part of the ELAO Ansible stack but can also work on its own.

Requirements

  • You need Ansible version 1.7.2 or higher.

Dependencies

There are no dependencies.

Installation

For Ansible 2 and above

To install using ansible galaxy command line:

ansible-galaxy install elao.npm,2.0

To install using an ansible galaxy requirements file:

- src:     elao.npm
  version: 2.0

For Ansible 1 (not supported anymore)

To install using ansible galaxy command line:

ansible-galaxy install elao.npm,1.0

To install using an ansible galaxy requirements file:

- src:     elao.npm
  version: 1.0

Role Variables

Name Default Type Description
elao_npm_packages [ ] Array List of npm packages

Example Configuration

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

For more about package configuration, check: http://docs.ansible.com/npm_module.html

Example Playbook

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

License

MIT

Author Information

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

Informazioni sul progetto

Setup and configure npm.

Installa
ansible-galaxy install ElaoInfra.npm
Licenza
Unknown
Download
763
Proprietario
All of those roles aren't maintained anymore and we strongly encourage you to switch to our new (maintained and tested) Ansible stack: https://github.com/manala