Installs and configures a node development environment for a given user using nodenv
.
Available on Ansible Galaxy at naftulikay.node-dev
.
Officially tested operating systems are listed in the Galaxy manifest.
node_user
- User to install node tools for. Required.
node_version
- Version of node to install. Defaults to 6.11.2.
None.
Here are some example playbooks to get started with.
Simply get a node development environment installed:
---
- name: install
hosts: all
become: true
roles:
- role: node-dev
node_user: vagrant
Install a specific version of node:
---
- name: install
hosts: all
become: true
roles:
- role: node-dev
node_user: vagrant
node_version: '6.11.2'
MIT