[test last]

This commit is contained in:
2025-11-11 17:12:39 +01:00
parent 77bd1a1eb8
commit ac5304fa0e

View File

@@ -32,7 +32,37 @@
# msg: "{{ bw_client_id }}"
# # delegate_to: localhost
# #! fin test
- name: Check if bw is installed
command: which bw
register: bw_check
ignore_errors: yes
delegate_to: localhost
changed_when: false
- 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
when: bw_check.rc != 0
- name: bitwarden token session
ansible.builtin.command: