Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
327 B

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