From 7f32414675b6791c0850b41cc948ddd6cc16499e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 29 Jun 2024 02:31:43 -0400 Subject: [PATCH] Add role run to initial D12 upgrade Avoids errors failing out later if there are any issues with these roles, and ensures the system is fully updated before the actual Debian upgrades. --- oneshot/upgrade-pvc-cluster_deb12.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/oneshot/upgrade-pvc-cluster_deb12.yml b/oneshot/upgrade-pvc-cluster_deb12.yml index e5b5da9..ec0a474 100644 --- a/oneshot/upgrade-pvc-cluster_deb12.yml +++ b/oneshot/upgrade-pvc-cluster_deb12.yml @@ -1,5 +1,5 @@ --- -# Play 1: Sanity check, information gathering, patroni freeze +# Play 1: Sanity check, initial configuration upgrade, information gathering, patroni freeze - hosts: all remote_user: deploy become: yes @@ -16,6 +16,14 @@ command: pvc cluster maintenance on ignore_errors: yes + - name: include base role + import_role: + name: base + + - name: include pvc role + import_role: + name: pvc + - name: get current postgresql directory shell: "find /usr/lib/postgresql -mindepth 1 -maxdepth 1 -type d -name '[0-9][0-9]' | sort -n | tail -1" register: old_postgres_dir_output