Ansible role to install nodenv
Set nodenv_env: system
to install nodenv system-wide, or nodenv_env: local
for local installation.
Add plugins under nodenv.plugins
var.
Define node versions to install under nodes
var.
Example:
nodenv_env: system
nodenv:
plugins:
- { name: node-build, repo: 'https://github.com/nodenv/node-build.git' }
nodes:
- version: 9.11.1
- Ubuntu
- precise (12.04)
- trusty (14.04)
- xenial (16.04) - xenial requires python2 to be installed for ansible support
- CentOS
- 6
- 7
- RHEL
- 6
- 7
---
# Example playbook
- name: nodenv setup
hosts: servers
gather_facts: yes
tasks:
- include_role:
name: eendroroy.nodenv
vars:
nodenv_env: system
pythons:
- version: 9.11.1
Bug reports and pull requests are welcome on GitHub at ansible-role-nodenv repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- indrajit - Owner - eendroroy
The project is available as open source under the terms of the MIT License.