ansible-ndenv
====================================

[![Build Status](https://travis-ci.org/FGtatsuro/ansible-ndenv.svg?branch=master)](https://travis-ci.org/FGtatsuro/ansible-ndenv)

Ansible role for ndenv.

Requirements
------------

The dependencies on other softwares/librarys for this role.

- Debian
- Alpine Linux
- OSX
  - Homebrew (>= 0.9.5)

Role Variables
--------------

The variables we can use in this role.

Role Dependencies
-----------------

The dependencies on other roles for this role.

- FGtatsuro.python-requirements
- FGtatsuro.anyenv

Example Playbook
----------------

    - hosts: all
      roles:
         - { role: FGtatsuro.ndenv }

Test on local Docker host
-------------------------

This project run tests on Travis CI, but we can also run them on local Docker host.
Please check `install`, `before_script`, and `script` sections of `.travis.yml`.
We can use same steps of them for local Docker host.

Local requirements are as follows.

- Ansible (>= 2.0.0)
- Docker (>= 1.10.1)

License
-------

MIT

ansible-ndenv
====================================

[![Build Status](https://travis-ci.org/FGtatsuro/ansible-ndenv.svg?branch=master)](https://travis-ci.org/FGtatsuro/ansible-ndenv)

Ansible role for ndenv.

Requirements
------------

The dependencies on other softwares/librarys for this role.

- Debian
- Alpine Linux
- OSX
  - Homebrew (>= 0.9.5)

Role Variables
--------------

The variables we can use in this role.

|name|description|default|
|---|---|---|
|ndenv_node_version|Installed node version with ndenv.|It isn't defined in default. No nodejs is installed.|

Role Dependencies
-----------------

The dependencies on other roles for this role.

- FGtatsuro.python-requirements
- FGtatsuro.anyenv

Example Playbook
----------------

    - hosts: all
      roles:
         - { role: FGtatsuro.ndenv }

Test on local Docker host
-------------------------

This project run tests on Travis CI, but we can also run them on local Docker host.
Please check `install`, `before_script`, and `script` sections of `.travis.yml`.
We can use same steps of them for local Docker host.

Local requirements are as follows.

- Ansible (>= 2.0.0)
- Docker (>= 1.10.1)

Notes
-----

If you want to install multiple versions of nodejs, please assign this role several times.

```yaml
---
- hosts: all
  roles:
    - { role: ndenv,  ndenv_node_version: 'v0.10.40' }
    - { role: ndenv,  ndenv_node_version: 'v0.12.4' }
```

License
-------

MIT

Add explanation about role variable 'ndenv_node_version'.
Add explanation about role variable 'ndenv_node_version'.

Not only ndenv, but specified version of nodejs is also installed when
this variable is defined.
