An Ansible role for setting up a NodeJS development environment.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
meta
tasks
templates
tests
vars
.gitignore
.travis.yml
LICENSE
Makefile
README.md
Vagrantfile
ansible.cfg
docker-compose.yml
local.yml
requirements.txt
requirements.yml
vagrant.yml

README.md

ansible-role-node-dev Build Status

Installs and configures a node development environment for a given user using nodenv.

Available on Ansible Galaxy at naftulikay.node-dev.

Requirements

Officially tested operating systems are listed in the Galaxy manifest.

Role Variables

node_user
User to install node tools for. Required.
node_version
Version of node to install. Defaults to 6.11.2.

Dependencies

None.

Example Playbook

Here are some example playbooks to get started with.

Defaults

Simply get a node development environment installed:

---
- name: install
  hosts: all
  become: true
  roles:
    - role: node-dev
      node_user: vagrant

Install a Specific Version

Install a specific version of node:

---
  - name: install
    hosts: all
    become: true
    roles:
      - role: node-dev
        node_user: vagrant
        node_version: '6.11.2'

License

MIT