Last active
October 25, 2017 12:02
-
-
Save tecnocat/24b57042b5964acfa353950d86f586bf to your computer and use it in GitHub Desktop.
Install Node, NVM and NPM with Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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