Can choose backend

This commit is contained in:
Dryusdan 2021-02-08 21:58:55 +01:00
parent 9ac9b8a1de
commit 0a4b79c97f
2 changed files with 3 additions and 1 deletions

View File

@ -9,9 +9,11 @@ bitwarden:
- name: bitwarden - name: bitwarden
home: /var/opt/bitwarden home: /var/opt/bitwarden
app_folder: /opt/bitwarden app_folder: /opt/bitwarden
backend: postgresql
``` ```
| Key | Value | | Key | Value |
|-----|-------| |-----|-------|
| name| Name of your bitwarden account | | name| Name of your bitwarden account |
| home| Home of bitwarden (to install rust and compile bitwarden) | | home| Home of bitwarden (to install rust and compile bitwarden) |
| app_folder| The folder path to copy bitwarden release on it | | app_folder| The folder path to copy bitwarden release on it |
| backend | (mysql|postgresql|sqlite) choose your backend DB for compilation |

View File

@ -131,7 +131,7 @@
- upgrade - upgrade
- name: Compile bitwarden_rs - 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: args:
chdir: "{{ item.home }}/bitwarden_rs" chdir: "{{ item.home }}/bitwarden_rs"
become: yes become: yes