Skip to content
Myr

[Docs] Add Ansible task example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add Ansible task example to show how to install nvm and update it. Ansible is a systems administration tool. See https://github.com/ansible/ansible My personal experience of `nvm` is that installing via Ansible is good, and that a good example can help. This example took me about an hour to learn, so I'm hoping to save other people some time. This example is somewhat different than any others that I found on the web. There may be a better way to write it, and if so, please improve it.

authored by Joel Parker Henderson · committed by Jordan Harband · parent 14179bc · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • other:+12 added−0 removed

1 file+12 added−0 removed

modified:README.md+12 added
4 unmodified lines
5## Table of Contents67- [Installation](#installation)8 - [Install script](#install-script)9 - [Ansible](#ansible)10 - [Verify installation](#verify-installation)11 - [Important Notes](#important-notes)12 - [Git install](#git-install)13 - [Manual Install](#manual-install)
77 unmodified lines
91`source ~/.bashrc`9293- For more information about this issue and possible workarounds, please [refer here](https://github.com/creationix/nvm/issues/576)9495#### Ansible96 You can use a task:9798```99- name: nvm100 shell: >101 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash102 args:103 creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"104```105106### Verify installation107108To verify that nvm has been installed, do:109
600 unmodified lines