|
5 | 5 | roles:
|
6 | 6 |
|
7 | 7 | - role: postgres
|
8 |
| - pg_port: 15432 |
| 8 | + pg_port: 5432 |
9 | 9 | pg_repo: https://github.com/kelvich/postgresql.git
|
10 | 10 | pg_version_tag: xtm_patched
|
11 | 11 | pg_destroy_and_init: true
|
12 | 12 | pg_datadir: ./postgrespro-data
|
13 | 13 |
|
14 | 14 | - role: postgres
|
15 |
| - pg_port: 15433 |
| 15 | + pg_port: 5433 |
16 | 16 | pg_repo: https://github.com/kelvich/postgresql.git
|
17 | 17 | pg_version_tag: xtm_patched
|
18 | 18 | pg_destroy_and_init: true
|
19 | 19 | pg_datadir: ./postgrespro-data2
|
20 | 20 |
|
| 21 | + - role: postgres |
| 22 | + pg_port: 5433 |
| 23 | + pg_repo: https://github.com/kelvich/postgresql.git |
| 24 | + pg_version_tag: xtm_patched |
| 25 | + pg_destroy_and_init: true |
| 26 | + pg_datadir: ./postgrespro-data3 |
| 27 | + |
21 | 28 | tasks:
|
22 | 29 |
|
23 | 30 | - name: clone dtm sources
|
|
35 | 42 |
|
36 | 43 | - name: enable dtm extension on datanodes
|
37 | 44 | lineinfile:
|
38 |
| - dest: "{{pg_datadir}}/postgresql.conf" |
| 45 | + dest: "postgrespro-data/postgresql.conf" |
| 46 | + regexp: "^shared_preload_libraries " |
| 47 | + line: "shared_preload_libraries = 'pg_dtm'" |
| 48 | + state: present |
| 49 | + |
| 50 | + - name: enable dtm extension on datanodes |
| 51 | + lineinfile: |
| 52 | + dest: "postgrespro-data2/postgresql.conf" |
| 53 | + regexp: "^shared_preload_libraries " |
| 54 | + line: "shared_preload_libraries = 'pg_dtm'" |
| 55 | + state: present |
| 56 | + |
| 57 | + - name: enable dtm extension on datanodes |
| 58 | + lineinfile: |
| 59 | + dest: "postgrespro-data3/postgresql.conf" |
39 | 60 | regexp: "^shared_preload_libraries "
|
40 | 61 | line: "shared_preload_libraries = 'pg_dtm'"
|
41 | 62 | state: present
|
|
44 | 65 | command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data -l ./postgrespro-data/pg.log"
|
45 | 66 |
|
46 | 67 | - name: restart postgrespro2
|
47 |
| - command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data -l ./postgrespro-data/pg.log" |
| 68 | + command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data2 -l ./postgrespro-data/pg.log" |
| 69 | + |
| 70 | + - name: restart postgrespro3 |
| 71 | + command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data3 -l ./postgrespro-data/pg.log" |
| 72 | + |
0 commit comments