ansible-roles/roles/postgresql_exporter/tasks/archive_pre.yml
2021-12-01 19:13:34 +01:00

12 lines
327 B
YAML

---
- 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