mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
22
roles/matrix_ma1sd/tasks/archive_pre.yml
Normal file
22
roles/matrix_ma1sd/tasks/archive_pre.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
|
||||
- name: Stop the service
|
||||
service: name=matrix-ma1sd state=stopped
|
||||
tags: matrix
|
||||
|
||||
- name: Create archive dir
|
||||
file: path={{ ma1sd_root_dir }}/archives/{{ ma1sd_current_version }} state=directory
|
||||
tags: matrix
|
||||
|
||||
- name: Archive current version
|
||||
synchronize:
|
||||
src: "{{ ma1sd_root_dir }}/{{ item }}"
|
||||
dest: "{{ ma1sd_root_dir }}/archives/{{ ma1sd_current_version }}/"
|
||||
recursive: True
|
||||
delete: True
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
loop:
|
||||
- app
|
||||
- db
|
||||
- etc
|
||||
tags: matrix
|
Reference in New Issue
Block a user