mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-25 22:53:23 +02:00
17 lines
402 B
YAML
17 lines
402 B
YAML
![]() |
---
|
||
|
|
||
|
- 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
|
||
|
|