mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/postgresql_exporter/tasks/archive_pre.yml
Normal file
11
roles/postgresql_exporter/tasks/archive_pre.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Create archive dir
|
||||
file: path={{ pg_exporter_root_dir }}/archives/{{ pg_exporter_current_version }} state=directory
|
||||
tags: pg
|
||||
|
||||
- name: Archive previous version
|
||||
archive:
|
||||
path: "{{ pg_exporter_root_dir }}/app"
|
||||
dest: "{{ pg_exporter_root_dir }}/archives/{{ pg_exporter_current_version }}.tgz"
|
||||
tags: pg
|
Reference in New Issue
Block a user