File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
ansible/tasks/postgres-extensions Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 40
40
dest : ' /tmp/citus'
41
41
clone : yes
42
42
43
- - name : Build Citus
43
+ - name : Run ./configure
44
44
command :
45
- cmd : " {{ item }} "
45
+ cmd : " ./configure "
46
46
chdir : /tmp/citus
47
- loop :
48
- - ' ./configure'
49
- - ' make'
50
- args :
51
- creates : " /tmp/citus/Makefile"
47
+ register : configure_result
48
+ ignore_errors : yes
52
49
53
- - name : Install Citus
50
+ - name : Check ./configure output
51
+ assert :
52
+ that : configure_result.rc == 0
53
+ fail_msg : " ./configure failed with the following output: {{ configure_result.stdout }} {{ configure_result.stderr }}"
54
+ success_msg : " ./configure succeeded with the following output: {{ configure_result.stdout }}"
55
+ when : configure_result is defined
56
+
57
+ - name : Run make to build Citus
54
58
command :
55
- cmd : " sudo make install "
59
+ cmd : " make"
56
60
chdir : /tmp/citus
61
+ when : configure_result is defined and configure_result.rc == 0
57
62
58
-
63
+ - name : Install Citus
64
+ command :
65
+ cmd : " make install"
66
+ chdir : /tmp/citus
67
+ when : configure_result is defined and configure_result.rc == 0
You can’t perform that action at this time.
0 commit comments