You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
700 B
22 lines
700 B
![]()
4 years ago
|
---
|
||
|
- name: Create archive directory
|
||
|
file: path={{ gitea_root_dir }}/archives/{{ gitea_current_version }} state=directory mode=700
|
||
|
tags: gitea
|
||
|
|
||
|
- name: Archive previous version
|
||
|
copy: src={{ gitea_root_dir }}/bin/gitea dest={{ gitea_root_dir }}/archives/{{ gitea_current_version }} remote_src=True
|
||
|
tags: gitea
|
||
|
|
||
|
- name: Archive the database
|
||
|
mysql_db:
|
||
|
state: dump
|
||
|
name: "{{ gitea_db_name }}"
|
||
|
target: "{{ gitea_root_dir }}/archives/{{ gitea_current_version }}/{{ gitea_db_name }}.sql.xz"
|
||
|
login_host: "{{ gitea_db_server | default(mysql_server) }}"
|
||
|
login_user: sqladmin
|
||
|
login_password: "{{ mysql_admin_pass }}"
|
||
|
quick: True
|
||
|
single_transaction: True
|
||
|
tags: gitea
|
||
|
|