From 0a4b79c97f0f847379cc5356bfd3fcb07b5a7c74 Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Mon, 8 Feb 2021 21:58:55 +0100 Subject: [PATCH] Can choose backend --- README.md | 2 ++ tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2280004..7f87d55 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,11 @@ bitwarden: - name: bitwarden home: /var/opt/bitwarden app_folder: /opt/bitwarden + backend: postgresql ``` | Key | Value | |-----|-------| | name| Name of your bitwarden account | | home| Home of bitwarden (to install rust and compile bitwarden) | | app_folder| The folder path to copy bitwarden release on it | +| backend | (mysql|postgresql|sqlite) choose your backend DB for compilation | diff --git a/tasks/main.yml b/tasks/main.yml index 4c2d987..d11f807 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -131,7 +131,7 @@ - upgrade - name: Compile bitwarden_rs - shell: "{{ item.home }}/.cargo/bin/cargo build --release --features mysql" + shell: "{{ item.home }}/.cargo/bin/cargo build --release --features {{ item.backend }}" args: chdir: "{{ item.home }}/bitwarden_rs" become: yes