Skip to content

eendroroy/ansible-role-nodenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodenv

Build Status

GitHub tag

Contributors GitHub last commit (branch) license GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

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:

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

---
# 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 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.

Author

License

The project is available as open source under the terms of the MIT License.