2023-08-27 11:43:02 +02:00
|
|
|
---
|
|
|
|
- name: Download the latest release
|
|
|
|
ansible.builtin.unarchive:
|
2023-08-28 22:10:37 +02:00
|
|
|
src: https://vault.bitwarden.com/download/?app=cli&platform=linux
|
2023-08-27 11:43:02 +02:00
|
|
|
dest: ~/.local/bin/
|
|
|
|
remote_src: yes
|
|
|
|
creates: ~/.local/bin/bw
|
|
|
|
|
|
|
|
- name: Make it executable
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: ~/.local/bin/bw
|
|
|
|
mode: u+x
|
|
|
|
|
2024-05-07 13:34:27 +02:00
|
|
|
- name: Create directories for different Bitwarden accounts
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "~/.config/Bitwarden CLI/{{ item }}"
|
|
|
|
state: directory
|
2023-08-27 11:43:02 +02:00
|
|
|
mode: 0600
|
2024-05-07 13:34:27 +02:00
|
|
|
owner: "{{ target_user }}"
|
|
|
|
group: "{{ target_user }}"
|
2023-08-27 11:43:02 +02:00
|
|
|
loop:
|
|
|
|
- vault.bitwarden.com
|
|
|
|
- vault.mfocko.xyz
|