Skip to content

ChristopheWalker/nodejs

 
 

Repository files navigation

ANXS - nodejs Build Status

Ansible role for installing nodejs, from package or by building it from source.

Requirements & Dependencies

  • Tested on Ansible 2.3.2 or higher.
  • Depends on ANXS.build-essential when using install_method of "source"

Variables

nodejs_version: "0.10.26"           # nodejs version to install.
nodejs_install_method: "source"     # "package" or "source" or "binary"

For "unstable" node versions (0.11), you may wish to use "binary" if you don't want to compile from source:

nodejs_version: "0.11.13"           # nodejs version to install.
nodejs_install_method: "binary"     # "source" or "binary" (package is not available for 0.11)

Testing

This project comes with a Vagrantfile, this is a fast and easy way to test changes to the role, fire it up with vagrant up

See vagrant docs for getting setup with vagrant

Once your VM is up, you can reprovision it using either vagrant provision, or ansible-playbook tests/playbook.yml -i vagrant-inventory

If you want to toy with the test play, see tests/playbook.yml, and change the variables in tests/vars.yml

If you are contributing, please first test your changes within the vagrant environment, (using the targeted distribution), and if possible, ensure your change is covered in the tests found in .travis.yml

Thanks to

Testing

This project comes with a VagrantFile, this is a fast and easy way to test changes to the role, fire it up with vagrant up

See vagrant docs for getting setup with vagrant

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%