Skip to content

ansiblebit/nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS

License Build Status

Platform Platform

Project Stats

Ansible role to setup NodeJS.

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Debian Wheezy x86_64
Debian Ubuntu Yakkety x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Precise x86_64

Requirements

  • ansible >= 1.9

Role Variables

  • nodejs_apt_dependencies: the APT dependencies needed to run this role.
  • nodejs_dir_src: directory where to store the NodeJS source.
  • nodejs_path: the directory where to install NodeJS.
  • nodejs_prefix: the filename prefix of the NodeJS tarball.
  • nodejs_tarball: the filename for the NodeJS tarball.
  • nodejs_version: NodeJS version to be installed.

Unless stated otherwise a default value is provided in defaults/main.yml for each of the variables mentioned above.

Dependencies

None.

Playbooks

- hosts: servers
  roles:
    - role: ansiblebit.nodejs

Tags

  • configuration: configuration tasks.
  • debug: task to debug role variables.
  • installation: installation tasks.
  • validation: task to validate role variables.

Test

To run the tests you will need to install:

To run all tests against all pre-defined OS/distributions * ansible versions:

$ tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log

To perform debugging on a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev

# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev

Links

License

BSD

Author Information

Packages

No packages published

Languages

  • Shell 71.9%
  • Ruby 16.2%
  • Python 11.9%