Skip to content

Commit 862d0e0

Browse files
committed
delete binaries on git pull properly
1 parent a162e5a commit 862d0e0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

contrib/pg_dtm/tests/deploy_layouts/roles/postgrespro/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
depth=1
4545
register: pg_sources
4646

47+
- name: remove binaries if sources have changed
48+
file: dest={{item}} state=absent
49+
with_items:
50+
- "{{pg_dst}}"
51+
- "{{dtmd.dst}}"
52+
when: pg_sources.changed
53+
4754
- include: postgres.yml
4855
when: deploy_postgres
4956

contrib/pg_dtm/tests/deploy_layouts/roles/postgrespro/tasks/postgres.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
- name: remove binaries if sources have changed
2-
file: dest={{item}} state=absent
3-
with_items:
4-
- "{{pg_dst}}"
5-
- "{{dtmd.dst}}"
6-
when: pg_sources.changed
7-
81
- name: build postgrespro
92
shell: ./configure --prefix={{pg_dst}} --without-zlib && make clean && make -j {{makejobs}} && make install
103
args:

0 commit comments

Comments
 (0)