|
|
@ -6,8 +6,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
- name: Archive current version |
|
|
|
- name: Archive current version |
|
|
|
synchronize: |
|
|
|
synchronize: |
|
|
|
src: "{{ root_dir }}/app" |
|
|
|
src: "{{ bookstack_root_dir }}/app" |
|
|
|
dest: "{{ root_dir }}/archives/{{ version }}/" |
|
|
|
dest: "{{ bookstack_root_dir }}/archives/{{ bookstack_current_version }}/" |
|
|
|
compress: False |
|
|
|
compress: False |
|
|
|
delete: True |
|
|
|
delete: True |
|
|
|
rsync_opts: |
|
|
|
rsync_opts: |
|
|
@ -19,7 +19,7 @@ |
|
|
|
mysql_db: |
|
|
|
mysql_db: |
|
|
|
state: dump |
|
|
|
state: dump |
|
|
|
name: "{{ bookstack_db_name }}" |
|
|
|
name: "{{ bookstack_db_name }}" |
|
|
|
target: "{{ bookstack_root_dir }}/archives/{{ current_version }}/{{ bookstack_db_name }}.sql.xz" |
|
|
|
target: "{{ bookstack_root_dir }}/archives/{{ bookstack_current_version }}/{{ bookstack_db_name }}.sql.xz" |
|
|
|
login_host: "{{ bookstack_db_server }}" |
|
|
|
login_host: "{{ bookstack_db_server }}" |
|
|
|
login_user: "{{ bookstack_db_user }}" |
|
|
|
login_user: "{{ bookstack_db_user }}" |
|
|
|
login_password: "{{ bookstack_db_pass }}" |
|
|
|
login_password: "{{ bookstack_db_pass }}" |
|
|
|