Skip to content

Instantly share code, notes, and snippets.

@kharandziuk
Created February 21, 2016 08:45
Show Gist options
  • Save kharandziuk/c0070a6dfb1403e9d679 to your computer and use it in GitHub Desktop.
Save kharandziuk/c0070a6dfb1403e9d679 to your computer and use it in GitHub Desktop.
Install node and npm with ansible on ubuntu box
# now you don't need to use curl
tasks:
- apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
# change trusty for your distributive name
- apt_repository: repo="deb https://deb.nodesource.com/node_5.x trusty main" state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment