nodejs
is an ansible role which:
- installs nodejs
- installs global npm packages
Using ansible-galaxy
:
$ ansible-galaxy install franklinkim.nodejs
Using requirements.yml
:
- src: 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
.
# node_packages:
# - less
# - { name: recess, version: 1.1.9 }
# define version
nodejs_version: 0.10
# define package (version)
nodejs_package: nodejs
# global packages to install
nodejs_packages: []
# global packages state (present|latest)
nodejs_packages_state: present
# update all global packages
nodejs_packages_update: no
- hosts: all
sudo: yes
roles:
- franklinkim.nodejs
vars:
nodejs_packages:
- less
- { name: recess, version: 1.1.9 }
$ 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.