nodejs
is an ansible role which:
- installs nodejs
- installs global npm packages
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
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: []
- host: all
roles:
- franklinkim.apt
- franklinkim.nodejs
vars:
apt_repositories:
- 'ppa:chris-lea/node.js'
nodejs_packages:
- less
You can use franklinkim.apt
to add a repository to get the latest nodejs
:
apt_repositories:
- 'ppa:chris-lea/node.js'
$ git clone https://github.com/weareinteractive/ansible-nodejs.git
$ cd ansible-nodejs
$ vagrant up
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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) We Are Interactive under the MIT license.