From d92ff41412d7c46d9e7ff2ac9635000e5419952c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 21 Jun 2020 09:20:12 -0700 Subject: [PATCH] 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 --- roles/postgresql_server/tasks/main.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/roles/postgresql_server/tasks/main.yml b/roles/postgresql_server/tasks/main.yml index bf7de4b278..c5077c002b 100644 --- a/roles/postgresql_server/tasks/main.yml +++ b/roles/postgresql_server/tasks/main.yml @@ -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