--- - name: Download the latest release ansible.builtin.unarchive: src: https://vault.bitwarden.com/download/?app=cli&platform=linux dest: ~/.local/bin/ remote_src: yes creates: ~/.local/bin/bw - name: Make it executable ansible.builtin.file: path: ~/.local/bin/bw mode: u+x - name: Create directories for different Bitwarden accounts ansible.builtin.file: path: "~/.config/Bitwarden CLI/{{ item }}" state: directory mode: 0600 owner: "{{ target_user }}" group: "{{ target_user }}" loop: - vault.bitwarden.com - vault.mfocko.xyz