Add PostgreSQL cleanup to upgrade

This commit is contained in:
Joshua Boniface 2022-07-18 14:00:05 -04:00
parent 416b5cee1d
commit eb60ad1969
1 changed files with 8 additions and 0 deletions

View File

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