mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user