Skip to content

Ansible role which installs nodejs and global npm packages

License

Notifications You must be signed in to change notification settings

ricoli/ansible-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Nodejs Role

Build Status Stories in Ready

nodejs is an ansible role which:

  • installs nodejs
  • installs global npm packages

Installation

Using ansible-galaxy:

$ ansible-galaxy install franklinkim.nodejs

Using arm (Ansible Role Manager):

$ arm install franklinkim.nodejs

Using git:

$ git clone https://github.com/weareinteractive/ansible-nodejs.git

Variables

Here is a list of all the default variables for this role, which are also available in defaults/main.yml.

# global packages to install
nodejs_packages: []

Example playbook

- host: all
  roles:
    - franklinkim.apt
    - franklinkim.nodejs
  vars:
    apt_repositories:
      - 'ppa:chris-lea/node.js'
    nodejs_packages:
      - less

Notes

You can use franklinkim.apt to add a repository to get the latest nodejs:

apt_repositories:
  - 'ppa:chris-lea/node.js'

Testing

$ git clone https://github.com/weareinteractive/ansible-nodejs.git
$ cd ansible-nodejs
$ vagrant up

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) We Are Interactive under the MIT license.

About

Ansible role which installs nodejs and global npm packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published