|
|
@ -21,3 +21,18 @@ |
|
|
|
- etc |
|
|
|
- etc |
|
|
|
- web-vault |
|
|
|
- web-vault |
|
|
|
tags: bitwarden |
|
|
|
tags: bitwarden |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Dump the database |
|
|
|
|
|
|
|
mysql_db: |
|
|
|
|
|
|
|
state: dump |
|
|
|
|
|
|
|
name: "{{ bitwarden_db_name }}" |
|
|
|
|
|
|
|
target: "{{ bitwarden_root_dir }}/archives/{{ bitwarden_current_version }}+{{ bitwarden_web_current_version }}/{{ bitwarden_db_name }}.sql.xz" |
|
|
|
|
|
|
|
login_host: "{{ bitwarden_db_server }}" |
|
|
|
|
|
|
|
login_user: "{{ bitwarden_db_user }}" |
|
|
|
|
|
|
|
login_password: "{{ bitwarden_db_pass }}" |
|
|
|
|
|
|
|
quick: True |
|
|
|
|
|
|
|
single_transaction: True |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
XZ_OPT: -T0 |
|
|
|
|
|
|
|
when: bitwarden_db_engine == 'mysql' |
|
|
|
|
|
|
|
tags: bitwarden |
|
|
|