GithubHelp home page GithubHelp logo

xiaoyao9184 / ansible-nvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stephdewit/ansible-nvm

0.0 0.0 0.0 46 KB

Ansible role to install Node.js

Home Page: https://galaxy.ansible.com/stephdewit/nvm

ansible-nvm's Introduction

nvm

Ansible Role Ansible Role Build Status Ansible Quality Score

Install nvm and Node.js.

Requirements

git, curl, build-essential, libssl-dev. Requirements are installed by the role.

Role Variables

  • nvm_version nvm version tag, or HEAD | master | latest. Defaults to 0.37.2
  • nvm_node_version Node.js specific version 12.16.0 or use lts | latest. Defaults to 14.15.4
  • nvm_install_path nvm folder path, support absolute and relative path. Defaults to ~/.nvm
  • nvm_shell_init_file The Shell initialization file to add sourcing of NVM to. Defaults to ~/.profile
  • nvm_force_install Boolean. Force reinstall nvm from git, for example if you change some files in nvm_install_path. Defaults to false
  • nvm_install_deps Boolean. Allow to skip dependencies setup and therefore run as a non-root user. Defaults to true

Dependencies

No dependencies.

Example Playbook

- hosts: servers
  roles:
    - role: stephdewit.nvm
      nvm_version: 0.4.0
      nvm_node_version: 0.10

Install latest version always

- hosts: servers
  roles:
    - role: stephdewit.nvm
      nvm_version: 'latest'
      nvm_node_version: 'latest'

When run with another user than the logged one, it may help to set NVM_DIR environment variable to an absolute path:

- hosts: servers
  roles:
    - role: stephdewit.nvm
      become: yes
      become_user: vagrant
      environment:
        NVM_DIR: /home/vagrant/.nvm

License

BSD

Author Information

ansible-nvm's People

Contributors

danmichaelo avatar jdrouet avatar rikukissa avatar stephdewit avatar ukch avatar weslyg avatar wtower avatar xiaoyao9184 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.