|
29 | 29 |
|
30 | 30 | - name: clone dtm sources
|
31 | 31 | git: repo=https://github.com/kelvich/pg_tsdtm.git
|
32 |
| - dest=./pg_tsdtm |
| 32 | + dest=./pg_tsdtm_test |
33 | 33 | accept_hostkey=yes
|
34 | 34 | update=yes
|
35 | 35 | register: dtm_sources
|
36 | 36 |
|
37 | 37 | - name: build dtm
|
38 | 38 | shell: "PG_CONFIG={{pg_dst}}/bin/pg_config make clean && PG_CONFIG={{pg_dst}}/bin/pg_config make -j {{makejobs}} install"
|
39 | 39 | args:
|
40 |
| - chdir: ./pg_tsdtm |
| 40 | + chdir: ./pg_tsdtm_test |
41 | 41 | when: dtm_sources.changed
|
42 | 42 |
|
43 | 43 | - name: enable dtm extension on datanodes
|
44 | 44 | lineinfile:
|
45 |
| - dest: "postgrespro-data/postgresql.conf" |
| 45 | + dest: "~/postgrespro-data/postgresql.conf" |
46 | 46 | regexp: "^shared_preload_libraries "
|
47 | 47 | line: "shared_preload_libraries = 'pg_dtm'"
|
48 | 48 | state: present
|
49 | 49 |
|
50 | 50 | - name: enable dtm extension on datanodes
|
51 | 51 | lineinfile:
|
52 |
| - dest: "postgrespro-data2/postgresql.conf" |
| 52 | + dest: "~/postgrespro-data2/postgresql.conf" |
53 | 53 | regexp: "^shared_preload_libraries "
|
54 | 54 | line: "shared_preload_libraries = 'pg_dtm'"
|
55 | 55 | state: present
|
56 | 56 |
|
57 | 57 | - name: enable dtm extension on datanodes
|
58 | 58 | lineinfile:
|
59 |
| - dest: "postgrespro-data3/postgresql.conf" |
| 59 | + dest: "~/postgrespro-data3/postgresql.conf" |
60 | 60 | regexp: "^shared_preload_libraries "
|
61 | 61 | line: "shared_preload_libraries = 'pg_dtm'"
|
62 | 62 | state: present
|
63 | 63 |
|
64 | 64 | - name: restart postgrespro1
|
65 |
| - command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data -l ./postgrespro-data/pg.log" |
| 65 | + command: "{{pg_dst}}/bin/pg_ctl restart -w -D ~/postgrespro-data -l ~/postgrespro-data/pg.log" |
66 | 66 |
|
67 | 67 | - name: restart postgrespro2
|
68 |
| - command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data2 -l ./postgrespro-data/pg.log" |
| 68 | + command: "{{pg_dst}}/bin/pg_ctl restart -w -D ~/postgrespro-data2 -l ~/postgrespro-data/pg.log" |
69 | 69 |
|
70 | 70 | - name: restart postgrespro3
|
71 |
| - command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data3 -l ./postgrespro-data/pg.log" |
| 71 | + command: "{{pg_dst}}/bin/pg_ctl restart -w -D ~/postgrespro-data3 -l ~/postgrespro-data/pg.log" |
72 | 72 |
|
0 commit comments