Need help with ansible-nodejs-role?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

nodesource
130 Stars 45 Forks MIT License 34 Commits 19 Opened issues

Description

Ansible Role for Node.js Binary Install

Services available

!
?

Need anything else?

Contributors list

ansible-nodejs-role

This is an Ansible role which adds the the NodeSource APT repository and installs Node.js.

Currently this role supports the following operating systems and releases.

  • Ubuntu 14.04 LTS (Trusty Tahr)
  • Ubuntu 16.04 LTS (Xenial Xerus)

Usage

You can either:

  • Install the playbook via Ansible Galaxy:
$ ansible-galaxy install nodesource.node
- src: https://github.com/nodesource/ansible-nodejs-role
$ ansible-galaxy install -r requirements.txt

Configure

Then configure it as follows:

- hosts: servers
  roles:
     - nodesource.node

Role Variables

  • nodejs_nodesource_pin_priority
    : Pin-Priority of the NodeSource repository (default:
    500
    ).
  • nodejs_version
    : Set Node version (options:
    0.10
    or
    0.12
    or
    4.6
    , default:
    4.6
    )

Testing

To test this role using molecule:

$ make
$ molecule test

Author

Mark Wolfe [email protected]

License

This code is Copyright (c) 2014 NodeSource and Mark Wolfe and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.