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.
This commit is contained in:
Joshua Boniface 2024-06-29 02:31:43 -04:00
parent e26a2f3ca5
commit 7f32414675
1 changed files with 9 additions and 1 deletions

View File

@ -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 - hosts: all
remote_user: deploy remote_user: deploy
become: yes become: yes
@ -16,6 +16,14 @@
command: pvc cluster maintenance on command: pvc cluster maintenance on
ignore_errors: yes ignore_errors: yes
- name: include base role
import_role:
name: base
- name: include pvc role
import_role:
name: pvc
- name: get current postgresql directory - 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" 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 register: old_postgres_dir_output