nodejs 20

This commit is contained in:
tomas.limpinho
2025-10-30 13:47:09 +00:00
parent c0a8b0b00a
commit e64863f887

View File

@ -1,12 +1,39 @@
- name: Instalar Node.js e npm
- name: Atualizar pacotes e instalar dependências básicas
become: true
apt:
name:
- nodejs
- npm
- curl
- git
- unzip
- jq
- gnupg
- ca-certificates
state: present
update_cache: true
- name: Adicionar repositório NodeSource para Node.js 20
become: true
shell: curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
args:
executable: /bin/bash
- name: Instalar Node.js 20
become: true
apt:
name: nodejs
state: present
update_cache: true
- name: Verificar versão do Node.js
command: node -v
register: node_version
changed_when: false
- name: Verificar versão do npm
command: npm -v
register: npm_version
changed_when: false
- name: Instalar Bitwarden CLI via npm
become: true
shell: npm install -g @bitwarden/cli