eendroroy.nodenv
nodenv
Ansible role to install nodenv
Role Variables
Set nodenv_env: system
to install nodenv for all users, or nodenv_env: local
for a single user installation.
Add any plugins you want under the nodenv.plugins
variable.
List the node versions you want to install under the nodes
variable.
Example:
nodenv_env: system
nodenv:
plugins:
- { name: node-build, repo: 'https://github.com/nodenv/node-build.git' }
nodes:
- version: 9.11.1
Supported Operating Systems
- Ubuntu
- precise (12.04)
- trusty (14.04)
- xenial (16.04) - xenial needs python2 for ansible to work
- CentOS
- 6
- 7
- RHEL
- 6
- 7
Example Playbook
---
# 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
Contributing
You can report bugs and submit pull requests on GitHub at the ansible-role-nodenv repository. This project aims to be a friendly place for collaboration, and contributors should follow the Contributor Covenant code of conduct.
Author
- indrajit - Owner - eendroroy
License
This project is open source and is available under the MIT License.
Installa
ansible-galaxy install eendroroy.nodenv
Licenza
mit
Download
932
Proprietario
Write code!