Add PostgreSQL cleanup to upgrade
This commit is contained in:
parent
416b5cee1d
commit
eb60ad1969
|
@ -158,6 +158,14 @@
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
upgrade: full
|
upgrade: full
|
||||||
|
|
||||||
|
- name: remove obsolete database directories
|
||||||
|
file:
|
||||||
|
dest: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- "/etc/postgresql/13"
|
||||||
|
- "/var/lib/postgresql/13"
|
||||||
|
|
||||||
- name: restart system
|
- name: restart system
|
||||||
reboot:
|
reboot:
|
||||||
post_reboot_delay: 15
|
post_reboot_delay: 15
|
||||||
|
|
Loading…
Reference in New Issue