From eb60ad19696c611088114dca2ad3a90f27f2bae3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 18 Jul 2022 14:00:05 -0400 Subject: [PATCH] Add PostgreSQL cleanup to upgrade --- oneshot/upgrade-pvc-cluster_deb11.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oneshot/upgrade-pvc-cluster_deb11.yml b/oneshot/upgrade-pvc-cluster_deb11.yml index e577693..6924578 100644 --- a/oneshot/upgrade-pvc-cluster_deb11.yml +++ b/oneshot/upgrade-pvc-cluster_deb11.yml @@ -158,6 +158,14 @@ autoclean: yes upgrade: full + - name: remove obsolete database directories + file: + dest: "{{ item }}" + state: absent + with_items: + - "/etc/postgresql/13" + - "/var/lib/postgresql/13" + - name: restart system reboot: post_reboot_delay: 15