ElaoInfra.npm

Ansible 角色:npm

它是 ELAO Ansible 堆栈 的一部分,但也可以作为独立组件使用。

要求

  • Ansible 版本 1.7.2 及以上

依赖

无。

安装

Ansible 2 及以上

使用 ansible galaxy 命令行工具:

ansible-galaxy install elao.npm,2.0

使用 ansible galaxy 需求文件:

- src:     elao.npm
  version: 2.0

Ansible 1(不再维护)

使用 ansible galaxy 命令行工具:

ansible-galaxy install elao.npm,1.0

使用 ansible galaxy 需求文件:

- src:     elao.npm
  version: 1.0

角色变量

名称 默认值 类型 描述
elao_npm_packages [ ] 数组 npm 包列表

配置示例

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

包配置指令: npm_module 文档

示例剧本

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

许可证

MIT

作者信息

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

关于项目

Setup and configure npm.

安装
ansible-galaxy install ElaoInfra.npm
许可证
Unknown
下载
763
拥有者
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