mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
20 lines
469 B
YAML
20 lines
469 B
YAML
- name: Clone nvm
|
|
tags:
|
|
- install
|
|
ansible.builtin.git:
|
|
accept_newhostkey: true
|
|
clone: true
|
|
force: true
|
|
recursive: false
|
|
repo: https://github.com/nvm-sh/nvm
|
|
dest: "{{ home }}/.nvm"
|
|
|
|
- name: Install node and set version
|
|
tags:
|
|
- config
|
|
register: nodeinstall
|
|
ansible.builtin.shell: source {{ home }}/.nvm/nvm.sh && nvm install 22
|
|
changed_when: "'is already installed' not in nodeinstall.stderr"
|
|
args:
|
|
executable: /bin/bash
|