postgresql: do NOT put a recovery.conf file on db-koji01 anymore

In phx2 we had a warm standby database host (db-koji02), but we no
longer have that host in iad2, so we shouldn't try and make db-koji01
handle that. Also, this was just changed mistakenly as it's the warm
standby host that should get the recovery.conf file.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-06-21 09:20:12 -07:00
parent 41af6c56db
commit d92ff41412

View file

@ -102,15 +102,6 @@
- config
- postgresql
- name: postgresql recover.conf template (standby only)
template: dest=/var/lib/pgsql/data/recovery.conf src=recovery.conf
when: inventory_hostname.startswith('db-koji01.iad2')
notify:
- restart postgresql
tags:
- config
- postgresql
- name: Ensure postgres has a place to backup to
file: dest=/backups state=directory owner=postgres
tags:
@ -203,7 +194,7 @@
copy: >
src=datagrepper_sar.py
dest=/usr/local/bin/datagrepper_sar.py mode=0700
when: inventory_hostname.startswith(('db-datanommer02', 'pgbdr01.stg'))
when: inventory_hostname.startswith('db-datanommer01')
tags:
- postgresql
- SAR