Skip to content

jskswamy/ansible-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-nodejs

An ansible role to install nodejs on Linux.

Role Variables

  • ansible_nodejs_download_dir:

    Download path on the control machine that will be used. Defaults to ~/.ansible/download.

  • ansible_nodejs_version:

    Nodejs version to be installed. Defaults to v0.12.6.

  • ansible_nodejs_install_base_dir:

    Installation prefix that will be used at the hosts. Defaults to /opt/nodejs.

  • ansible_nodejs_sha256sum:

    Nodejs package sha256sum, v0.12.6's sha256sum is : ebbd70ffe0daac6b33df74577c9d25cfb678dbc0016a5ea9eff99d2c5bdb3851.

  • ansible_nodejs_global_pkgs:

    Nodejs global packages to install, defaults to: []

  • ansible_nodejs_npm_mirror:

    Nodejs npm mirror, defaults to empty.

Example Playbook

- hosts: all
  roles:
    - role: ansible-nodejs
      ansible_nodejs_version: 'v0.12.6'
      ansible_nodejs_sha256sum: 'ebbd70ffe0daac6b33df74577c9d25cfb678dbc0016a5ea9eff99d2c5bdb3851'
      ansible_nodejs_global_pkgs: [forever, pm2]

License

BSD

About

Ansible role to install nodejs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 73.1%
  • Shell 26.9%