Setup io.js repository and install binary package provided by Nodesource.
Use nodesource.node role provided by Nodesource.
Only the latest versions of Ubuntu and Debian are supported by Nodesource.
Ubuntu since version 14.04 (trusty).
Debian since Jessie.
The role uses apt_repository module which has additional dependencies. You can use bootstrap-debian role to setup common Ansible requirements on Debian-based systems.
Furthermore the repository uses HTTPS, so make sure package apt-transport-https
is available on your system.
iojs_version
: Version of the io.js package to install.- Default:
"1.8.*"
- Note: Package version contains suffix, so make sure to always end the version specification with asterisk, e.g.
1.8.1*
- Default:
iojs_repo_base
: Base URL for the package repository.- Default:
"https://deb.nodesource.com/iojs_1.x"
- Default:
iojs_repo_key_url
: Repository GPG key to install.- Default:
"https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
- Default:
iojs_repo_key_id
: ID of the GPG key to be installed to prevent needless download.- Default:
"1655A0AB68576280"
- Default:
- hosts: servers
roles:
- { role: jnv.iojs-debian }