https://github.com/eendroroy/ansible-role-nodenv
https://github.com/eendroroy/ansible-role-nodenv
ansible-role nodenv
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eendroroy/ansible-role-nodenv
- Owner: eendroroy
- License: mit
- Created: 2017-05-06T23:10:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T08:24:42.000Z (over 7 years ago)
- Last Synced: 2025-01-26T19:22:10.119Z (over 1 year ago)
- Topics: ansible-role, nodenv
- Language: Shell
- Homepage: https://galaxy.ansible.com/eendroroy/nodenv/
- Size: 30.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodenv
[](https://travis-ci.org/eendroroy/ansible-role-nodenv)
[](https://github.com/eendroroy/ansible-role-nodenv/tags)
[](https://github.com/eendroroy/ansible-role-nodenv/graphs/contributors)
[](https://github.com/eendroroy/ansible-role-nodenv)
[](https://github.com/eendroroy/ansible-role-nodenv/blob/master/LICENSE)
[](https://github.com/eendroroy/ansible-role-nodenv/issues)
[](https://github.com/eendroroy/ansible-role-nodenv/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/eendroroy/ansible-role-nodenv/pulls)
[](https://github.com/eendroroy/ansible-role-nodenv/pulls?q=is%3Apr+is%3Aclosed)
Ansible role to install nodenv
### Role Variables
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:
```yml
nodenv_env: system
nodenv:
plugins:
- { name: node-build, repo: 'https://github.com/nodenv/node-build.git' }
nodes:
- version: 9.11.1
```
### Supported OS
- 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
```yml
---
# 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
Bug reports and pull requests are welcome on GitHub at [ansible-role-nodenv](https://github.com/eendroroy/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](http://contributor-covenant.org) code of conduct.
## Author
* **indrajit** - *Owner* - [eendroroy](https://github.com/eendroroy)
## License
The project is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).