mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-16 19:27:37 +00:00
bw via npm
This commit is contained in:
@ -1,22 +1,22 @@
|
||||
- name: Instalar dependências (curl, unzip, jq)
|
||||
- name: Instalar Node.js e npm
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- curl
|
||||
- unzip
|
||||
- jq
|
||||
- nodejs
|
||||
- npm
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Instalar Bitwarden CLI
|
||||
- name: Instalar Bitwarden CLI via npm
|
||||
become: true
|
||||
shell: |
|
||||
curl -L https://github.com/bitwarden/cli/releases/latest/download/bw-linux.zip -o bw.zip
|
||||
unzip bw.zip
|
||||
chmod +x bw
|
||||
mv bw /usr/local/bin/bw
|
||||
shell: npm install -g @bitwarden/cli
|
||||
args:
|
||||
creates: /usr/local/bin/bw
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Verificar instalação do Bitwarden CLI
|
||||
command: bw --version
|
||||
register: bw_version
|
||||
failed_when: bw_version.rc != 0
|
||||
|
||||
- name: Fazer login no Bitwarden
|
||||
shell: bw login {{ bw_email }} --password {{ bw_password }}
|
||||
|
||||
Reference in New Issue
Block a user