Workout the nvm install role
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
16
roles/nvm/tasks/download.yml
Normal file
16
roles/nvm/tasks/download.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 06-04-2023
|
||||
# @description : This will download the nvm install script.
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Download nvm
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/nvm-sh/nvm/{{ nvm_latest_version.stdout }}/install.sh
|
||||
dest: /tmp/nvm-install.sh
|
||||
mode: 0755
|
||||
when: nvm_version.stdout != nvm_latest_version.stdout
|
Reference in New Issue
Block a user