[test last]

This commit is contained in:
2025-11-11 17:29:46 +01:00
parent a4f4efb132
commit 7be420a6d1

View File

@@ -41,35 +41,14 @@
- name: Install Bitwarden CLI
block:
- name: Download bw
get_url:
url: https://github.com/bitwarden/clients/releases/download/cli-v2024.1.0/bw-linux-2024.1.0.zip
dest: /tmp/bw.zip
delegate_to: localhost
- name: Unzip bw
unarchive:
src: /tmp/bw.zip
dest: /tmp/
remote_src: yes
delegate_to: localhost
- name: Install bw
copy:
src: /tmp/bw
dest: /usr/local/bin/bw
mode: '0755'
remote_src: yes
delegate_to: localhost
- ansible.builtin.pause:
seconds: 30
- name: bitwarden token session
ansible.builtin.command:
cmd: "{{ item }}"
loop:
- sudo apk add --no-cache nodejs npm
- sudo npm install -g @bitwarden/cli
when: bw_check.rc != 0
- ansible.builtin.pause:
seconds: 500
- name: bitwarden token session
ansible.builtin.command:
@@ -84,11 +63,6 @@
delegate_to: localhost
register: bw_session_result
- debug:
msg: "{{ bw_session_result }}"
#
- name: Utiliser le lookup
ansible.builtin.debug:
msg: "{{ lookup('community.general.bitwarden', 'Token full access gitea', field='password') }}"