diff --git a/automation/roles/bubble/tasks/postgresql.yml b/automation/roles/bubble/tasks/postgresql.yml index 08aeb83b..f9a0a9c6 100644 --- a/automation/roles/bubble/tasks/postgresql.yml +++ b/automation/roles/bubble/tasks/postgresql.yml @@ -17,3 +17,20 @@ with_items: - postgresql.conf - pg_hba.conf + +# When PostgreSQL restarts after a reboot, for some weird reason it looks in the 9.4 dir (instead of 10) for files +- name: Symlink /var/lib/postgresql/9.4 -> /var/lib/postgresql/10 + file: + src: /var/lib/postgresql/10 + dest: /var/lib/postgresql/9.4 + owner: root + group: root + state: link + +- name: Symlink /etc/postgresql/9.4 -> /etc/postgresql/10 + file: + src: /etc/postgresql/10 + dest: /etc/postgresql/9.4 + owner: root + group: root + state: link