Workout the nvm install role
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
13
roles/nvm/tasks/get_version.yml
Normal file
13
roles/nvm/tasks/get_version.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 06-04-2023
|
||||
# @description : This will get the latest version of nvm.
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Get the latest nvm version
|
||||
shell: curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | grep tag_name | cut -d '"' -f 4
|
||||
register: nvm_latest_version
|
Reference in New Issue
Block a user