Skip to content

Instantly share code, notes, and snippets.

@tecnocat
Last active October 25, 2017 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tecnocat/24b57042b5964acfa353950d86f586bf to your computer and use it in GitHub Desktop.
Save tecnocat/24b57042b5964acfa353950d86f586bf to your computer and use it in GitHub Desktop.
Install Node, NVM and NPM with Ansible
---
- name: Ensure Node is installed
become: no
shell: "{{ item }}"
with_items:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
- bash -c "source ~/.nvm/nvm.sh && nvm install v8.5.0"
- bash -c "source ~/.nvm/nvm.sh && npm i -g npm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment