update how to install node + add pnpm

This commit is contained in:
meaz 2024-03-23 23:09:38 +01:00
parent 2e109e5a07
commit 9c70f6b519
Signed by: meaz
GPG key ID: CD7A47B2F1ED43B4

View file

@ -1,18 +1,23 @@
---
- name: '[INSTALLDEPS] - Add Nodesource apt key.'
- name: '[INSTALL] - Add Nodesource apt key.'
apt_key:
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
id: "68576280"
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
state: present
- name: '[INSTALLDEPS] - Add repository for nodejs'
apt_repository:
repo: deb https://deb.nodesource.com/node_{{ etherpad_nodejs_version }}.x {{ ansible_distribution_release }} main
repo: deb https://deb.nodesource.com/node_{{ etherpad_nodejs_version }}.x nodistro main
state: present
update_cache: yes
filename: 'nodesource'
- name: '[INSTALLDEPS] - Install dependencies'
apt:
name: "{{ etherpad_apt }}"
update_cache: yes
- name: '[INSTALLDEPS] - Install pnpm'
npm:
name: pnpm
global: true