{"id":13343318,"url":"https://github.com/moviedo/ansible-role-nvm","last_synced_at":"2025-03-12T04:33:15.791Z","repository":{"id":31120657,"uuid":"34680200","full_name":"moviedo/ansible-role-nvm","owner":"moviedo","description":"Ansible role for using NVM, Node Version Manager, locally.","archived":false,"fork":false,"pushed_at":"2022-12-08T03:37:07.000Z","size":238,"stargazers_count":17,"open_issues_count":10,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T15:39:16.627Z","etag":null,"topics":["ansbile","nvm","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moviedo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-27T17:17:48.000Z","updated_at":"2023-10-20T09:53:26.000Z","dependencies_parsed_at":"2023-01-14T18:22:47.538Z","dependency_job_id":null,"html_url":"https://github.com/moviedo/ansible-role-nvm","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviedo%2Fansible-role-nvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviedo%2Fansible-role-nvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviedo%2Fansible-role-nvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviedo%2Fansible-role-nvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moviedo","download_url":"https://codeload.github.com/moviedo/ansible-role-nvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158974,"owners_count":20245668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansbile","nvm","yaml"],"created_at":"2024-07-29T19:31:08.252Z","updated_at":"2025-03-12T04:33:15.524Z","avatar_url":"https://github.com/moviedo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: NVM\n=========\n\n[![Join the chat at https://gitter.im/moviedo/ansible-role-nvm](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moviedo/ansible-role-nvm?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/moviedo/ansible-role-nvm.svg?branch=develop)](https://travis-ci.org/moviedo/ansible-role-nvm)\n\nThis ansible role is used to install NVM, Node Version Manager, locally within a linux box.\n\nRequirements\n------------\n\nThis role requires git, curl, build-essential, libssl-dev. Requirements are installed by this role.\n\nRole Variables\n--------------\n\nRequired Variables\n\n  * `nvm_user` This should be the remote user that will use NVM. This value defaults to 'vagrant'.\n\n  * `nvm_group` This optional variable is the remote group that will be used to setup permissions. If undefined, will fallback to `nvm_user`.\n\nOptional Variables\n\n  * `nvm_version: \"v0.35.2\"` NVM version to install on remote machine, it defaults to `v0.35.2`. You must specify a distinct NVM version, do **NOT** use wild cards (i.e. `v0.24.x`).\n  * `nvm_node_version: \"12.14.1\"` Node version to install on the remote machine, it defaults to `12.14.1`. You must specify a distinct node version, do **NOT** use wild cards (i.e. `12.14.x`).\n\nDependencies\n------------\n\nNo dependencies.\n\nExample Playbook\n----------------\n\n    - hosts: all\n      roles:\n      - role: moviedo.nvm\n          nvm_user: vagrant\n          nvm_version: \"v0.35.2\"\n          nvm_node_version: \"12.14.1\"\n\nOther Information\n-----------------\n\nThis role will also run `nvm alias default` on the specified *nvm_node_version* to [set a default Node version to be used in any new shell](https://github.com/creationix/nvm).\n\n\nContributing\n-----------------\n\nInformation on how to contribute to the project.\n\n### Setup\nHow to setup the project for local development.\n\n1. Install [docker](https://docs.docker.com/docker-for-mac/install/)\n1. Install project dependencies with [pipenv](https://pipenv.readthedocs.io/en/latest/) and run `pipenv install`.\n\n### Workflow\n\n1. Fork the repo.\n1. Make your desired changes.\n1. Write your tests in the molecule/default/test/test_default.py file or add test in a different file if needed.\n1. Test said desired changes using [molecule](https://molecule.readthedocs.io/en/latest/).\n\n    Molecule is used to test again different OS platforms(i.e. ubuntu, centos, etc).\n\n1. Test against multiple ansible versions with [tox](https://tox.readthedocs.io/en/latest/).\n1. Make a merge request to the project.\n\nCheck the testing section for more info on commands to run for testing locally.\n\n### Testing Locally\n\nInformation on what commands to run in order to test locally.\n\n#### Molecule Cammnads\n\n1. Run the `molecule test` command to test the all scenarios.\n1. Run the `molecule verify` to test against the [testinfra](https://testinfra.readthedocs.io/en/latest/index.html) test. Used to verify that the role makes the desired changes against the docker images.\n\n##### Tox Commands\n\nRun `tox --parallel auto` to test changes against the different ansible version that this role supports.\n**Warning**: taking a few minutes to run all tests.\n\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nMauro Oviedo (aka moviedo)\n\nContributors\n------------------\n\n[sylvainmetayer](https://github.com/sylvainmetayer)\n\n[jminuscula](https://github.com/jminuscula)\n\n[alonisser](https://github.com/alonisser)\n\n[senorsmile](https://github.com/senorsmile)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoviedo%2Fansible-role-nvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoviedo%2Fansible-role-nvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoviedo%2Fansible-role-nvm/lists"}