fix(secrets/bw): use correct variables

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-07-12 14:56:07 +02:00
parent 749be7227e
commit 42aeacb47b
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -17,15 +17,21 @@
state: directory state: directory
mode: 0700 mode: 0700
owner: "{{ target_user }}" owner: "{{ target_user }}"
group: "{{ target_user }}" group: "{{ target_group }}"
- name: Create directories for different Bitwarden accounts - name: Create directories for public Bitwarden instance
ansible.builtin.file: ansible.builtin.file:
path: "~/.config/Bitwarden CLI/{{ item }}" path: "~/.config/Bitwarden CLI/vault.bitwarden.com"
state: directory state: directory
mode: 0700 mode: 0700
owner: "{{ target_user }}" owner: "{{ target_user }}"
group: "{{ target_user }}" group: "{{ target_group }}"
loop:
- vault.bitwarden.com - name: Create directory for the self-hosted Vaultwarden instance
- vault.mfocko.xyz ansible.builtin.file:
path: "~/.config/Bitwarden CLI/{{ vaultwarden_address }}"
state: directory
mode: 0700
owner: "{{ target_user }}"
group: "{{ target_group }}"
when: vaultwarden_address