From 5d8334c7f52d5cd33dac938f6be4b36670be9d7a Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 6 Sep 2023 11:45:56 +0200 Subject: [PATCH] fix: remove duplicate after reorg Signed-off-by: Matej Focko --- roles/user/bw/meta/main.yml | 8 -------- roles/user/bw/tasks/main.yml | 38 ------------------------------------ 2 files changed, 46 deletions(-) delete mode 100644 roles/user/bw/meta/main.yml delete mode 100644 roles/user/bw/tasks/main.yml diff --git a/roles/user/bw/meta/main.yml b/roles/user/bw/meta/main.yml deleted file mode 100644 index 29430af..0000000 --- a/roles/user/bw/meta/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -galaxy_info: - author: Matej Focko - description: Install and configure Bitwarden CLI - - license: BSD-3-Clause - - min_ansible_version: 7.2.0 diff --git a/roles/user/bw/tasks/main.yml b/roles/user/bw/tasks/main.yml deleted file mode 100644 index ba99b27..0000000 --- a/roles/user/bw/tasks/main.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -- 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: Run the CLI to create initial file - ansible.builtin.command: - cmd: "/home/{{ target_user }}/.local/bin/bw" - creates: ~/.config/Bitwarden CLI/data.json - -- name: Create data stores for specific deployments - ansible.builtin.copy: - src: ~/.config/Bitwarden CLI/data.json - dest: ~/.config/Bitwarden CLI/{{ item }}.json - mode: 0600 - force: false - remote_src: true - loop: - - vault.bitwarden.com - - vault.mfocko.xyz - -- name: Symlink to the self-hosted deployment - ansible.builtin.file: - src: ~/.config/Bitwarden CLI/vault.mfocko.xyz.json - path: ~/.config/Bitwarden CLI/data.json - force: true - state: link -# - name: Switch the server on the self-hosted “login” -# ansible.builtin.command: -# cmd: bw config server https://vault.mfocko.xyz