Skip to content

Commit cb43093

Browse files
author
Jose Chirivella
committed
Added nvm command to set default
1 parent 2ee4db9 commit cb43093

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ansible_osx.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
- orbstack
3535
- notion
3636
- notion-calendar
37+
- font-jetbrains-mono
3738

3839
- name: "Install homebrew packages"
3940
community.general.homebrew:
@@ -80,7 +81,6 @@
8081
become: true
8182
changed_when: true
8283
shell: sudo xcodebuild -license accept
83-
8484

8585
- name: Get the path to ZSH
8686
become: false
@@ -167,6 +167,15 @@
167167
creates: "{{ ansible_env.HOME }}/.nvm/versions/{{ item }}"
168168
loop:
169169
- 22
170+
- name: Make node LTS the default
171+
become: no
172+
shell: >
173+
. {{ ansible_env.HOME }}/.nvm/nvm.sh && nvm use {{ item }} && nvm alias default {{ item }}
174+
args:
175+
executable: /bin/bash
176+
chdir: "{{ ansible_env.HOME }}"
177+
loop:
178+
- 22
170179

171180
- name: "Install Default Ruby"
172181
shell: |

0 commit comments

Comments
 (0)