File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ /deploy /hosts
2+ /deploy /pg_cluster_install.tgz
3+ /perf.results
Original file line number Diff line number Diff line change 4444 - name : restart postgrespro
4545 command : " {{pg_dst}}/bin/pg_ctl restart -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
4646 environment :
47- LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
47+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib/"
4848
4949- hosts : clients
5050 tasks :
Original file line number Diff line number Diff line change 9393- name : stop postgres if it was running
9494 shell : " kill -9 `head -n 1 {{pg_datadir}}/postmaster.pid`"
9595 environment :
96- LD_LIBRARY_PATH : " {{pg_dst}}/lib"
96+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib"
9797 when : pg_pidfile.stat.exists
9898
9999- name : remove datadirs on datanodes
103103- name : create datadirs on datanodes
104104 command : " {{pg_dst}}/bin/initdb {{pg_datadir}}"
105105 environment :
106- LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
106+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib/"
107107 args :
108108 creates : " {{pg_datadir}}"
109109
129129- name : start postgrespro
130130 shell : " {{pg_dst}}/bin/pg_ctl start -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
131131 environment :
132- LD_LIBRARY_PATH : " {{pg_dst}}/lib/ "
132+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib"
133133
Original file line number Diff line number Diff line change 3030 gather_facts : no
3131 tasks :
3232 - name : init database
33+ environment :
34+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH:/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
3335 shell : " ~/pg_cluster/install/bin/dtmbench {{connections}} -a 2000000 -i"
3436 register : init_result
3537 - debug : var=init_result
4951 sed "s/^/`hostname`:/"
5052 register : transfers_result
5153 environment :
52- LD_LIBRARY_PATH : " /home/{{ansible_ssh_user}}/pg_cluster/install/lib"
54+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: /home/{{ansible_ssh_user}}/pg_cluster/install/lib"
5355
5456 - debug : var=transfers_result
5557
You can’t perform that action at this time.
0 commit comments