Skip to content

Commit

Permalink
Merge Request #267 from mrsrvman/master
Browse files Browse the repository at this point in the history
Deleting local files after copying from the master
  • Loading branch information
vitabaks authored Mar 1, 2023
2 parents 4f1bbc8 + 7d70085 commit 510e812
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/patroni/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions roles/pgbouncer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 510e812

Please sign in to comment.