From e15427c356cf66ad189986b73e020b5a5e2622c1 Mon Sep 17 00:00:00 2001 From: mrsrvman Date: Wed, 1 Mar 2023 23:49:10 +0500 Subject: [PATCH 1/3] Update roles/pgbouncer/tasks/main.yml Deleting local files after copying from the master --- roles/pgbouncer/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/pgbouncer/tasks/main.yml b/roles/pgbouncer/tasks/main.yml index a929a72b3..aedb44ebd 100644 --- a/roles/pgbouncer/tasks/main.yml +++ b/roles/pgbouncer/tasks/main.yml @@ -155,6 +155,16 @@ - pgbouncer.ini - userlist.txt + - name: Remove pgbouncer.ini and userlist.txt conf files from localhost + run_once: true + file: + path: "files/{{ item }}" + state: absent + loop: + - pgbouncer.ini + - userlist.txt + delegate_to: localhost + - name: Prepare pgbouncer.ini conf file (replace "listen_addr") lineinfile: path: /etc/pgbouncer/pgbouncer.ini @@ -185,3 +195,4 @@ tags: pgbouncer_conf, pgbouncer ... + From 2ee86a11f20d61b870a74923f4848a3f4c551b96 Mon Sep 17 00:00:00 2001 From: mrsrvman Date: Wed, 1 Mar 2023 23:51:54 +0500 Subject: [PATCH 2/3] Update roles/patroni/tasks/main.yml Deleting local files after copying from the master --- roles/patroni/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/patroni/tasks/main.yml b/roles/patroni/tasks/main.yml index 41c91a1a0..396647480 100644 --- a/roles/patroni/tasks/main.yml +++ b/roles/patroni/tasks/main.yml @@ -284,6 +284,13 @@ group: postgres mode: 0640 + - name: Remove patroni.yml conf files from localhost + run_once: true + file: + path: files/patroni.yml + state: absent + delegate_to: localhost + - name: Prepare patroni.yml conf file (replace "name","listen","connect_address") lineinfile: path: /etc/patroni/patroni.yml From 7d700859857ae8ccfb552c0952f0309a7d6f858b Mon Sep 17 00:00:00 2001 From: mrsrvman Date: Wed, 1 Mar 2023 23:56:12 +0500 Subject: [PATCH 3/3] Update main.yml --- roles/pgbouncer/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/pgbouncer/tasks/main.yml b/roles/pgbouncer/tasks/main.yml index aedb44ebd..e05e7f2b9 100644 --- a/roles/pgbouncer/tasks/main.yml +++ b/roles/pgbouncer/tasks/main.yml @@ -195,4 +195,3 @@ tags: pgbouncer_conf, pgbouncer ... -