Browse Source

add symlinks to fix odd postgres restart bug

tags/v0.9.11
Jonathan Cobb 4 years ago
parent
commit
f34efa23c2
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      automation/roles/bubble/tasks/postgresql.yml

+ 17
- 0
automation/roles/bubble/tasks/postgresql.yml View File

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

Loading…
Cancel
Save