mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
update
This commit is contained in:
@@ -22,25 +22,23 @@
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Clone nvm
|
||||
- name: Install atuin
|
||||
tags:
|
||||
- install
|
||||
ansible.builtin.git:
|
||||
accept_newhostkey: true
|
||||
clone: true
|
||||
force: true
|
||||
recursive: false
|
||||
repo: https://github.com/nvm-sh/nvm
|
||||
dest: "{{ home }}/.nvm"
|
||||
include_role:
|
||||
name: software/atuin
|
||||
|
||||
- name: Install node and set version
|
||||
- name: Install starship
|
||||
tags:
|
||||
- install
|
||||
include_role:
|
||||
name: software/starship
|
||||
|
||||
- name: Setup node
|
||||
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
|
||||
- install
|
||||
include_tasks: "nvm.yml"
|
||||
|
||||
- name: Setup nvim
|
||||
tags:
|
||||
|
||||
19
playbooks/roles/terminal/tasks/nvm.yml
Normal file
19
playbooks/roles/terminal/tasks/nvm.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user