Files
ansible-automations/roles/nvm/tasks/install.yml

21 lines
830 B
YAML
Raw Normal View History

# ===================================================================================================
# ? ABOUT
# @author : Noah Knegt
# @email : personal@noahknegt.com
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
# @createdOn : 06-04-2023
# @description : This will install nvm as the latest version.
# ===================================================================================================
---
- name: Install nvm
shell: /tmp/nvm-install.sh
become: true
become_user: noahk
become_method: su
become_flags: '--login'
vars:
ansible_become_pass: "{{ noahk_password }}"
allow_world_readable_tmpfiles: true
when: nvm_version.stdout != nvm_latest_version.stdout or nvm_version.stdout == ""