Skip to content

Commit 2e9ef76

Browse files
committed
fix: update NPM installation for social inbox to use nvm
1 parent ba47d03 commit 2e9ef76

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • ansible/roles/distributed_press/tasks

ansible/roles/distributed_press/tasks/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,18 @@
129129
clone: yes
130130
update: yes
131131

132-
- name: Install NPM Dependencies for social inbox
132+
- name: Install NPM Dependencies for social inbox (via nvm)
133133
when: social_inbox_enabled
134134
become: yes
135135
become_user: "{{social_inbox_user}}"
136136
shell: |
137+
export NVM_DIR="$HOME/.nvm"
138+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
139+
nvm use --lts
137140
cd {{social_inbox_source}}
138141
npm ci
142+
args:
143+
executable: /bin/bash
139144

140145
- name: Import blocklist for social inbox
141146
when:

0 commit comments

Comments
 (0)