mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-08-31 18:00
This commit is contained in:
16
roles/drbdtop/tasks/archive_pre.yml
Normal file
16
roles/drbdtop/tasks/archive_pre.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- name: Create the archive dir
|
||||
file: path={{ drbdtop_root_dir }}/archives/{{ drbdtop_current_version }} state=directory
|
||||
tags: drbd
|
||||
|
||||
- name: Backup previous version
|
||||
synchronize:
|
||||
src: "{{ drbdtop_root_dir }}/{{ item }}"
|
||||
dest: "{{ drbdtop_root_dir }}/archives/{{ drbdtop_current_version }}/"
|
||||
compress: False
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
loop:
|
||||
- bin
|
||||
tags: drbd
|
||||
|
Reference in New Issue
Block a user