File tree 1 file changed +31
-1
lines changed
src/main/scripts/ci/ansible
1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 29
29
become : no
30
30
delegate_to : 127.0.0.1
31
31
32
+ - name : Copying a candidate WAR file
33
+ copy :
34
+ src : " {{ local_war_dir }}/mystamps.war"
35
+ dest : " {{ remote_war_dir }}/mystamps-candidate.war"
36
+ owner : mystamps
37
+ group : mystamps
38
+ mode : ' 0755'
39
+
40
+ # The command to execute JVM is similar to ExecStart from /etc/systemd/system/mystamps.service
41
+ - name : Ensuring whether Liquibase migrations are valid
42
+ shell : |
43
+ set -eu
44
+ eval "$(sed -n '/^[A-Z]/s||export &|p' mystamps.conf)"
45
+ java $JAVA_OPTS -jar mystamps-candidate.war liquibase validate
46
+ args :
47
+ chdir : /data/mystamps
48
+ changed_when : False
49
+ register : liquibase_validate
50
+
51
+ - name : Show stdout of liquibase validate
52
+ debug :
53
+ var : liquibase_validate.stdout_lines
54
+ when : not liquibase_validate.failed
55
+
56
+ - name : Show stderr of liquibase validate
57
+ debug :
58
+ var : liquibase_validate.stderr_lines
59
+ when : not liquibase_validate.failed
60
+
32
61
- name : Stopping monitoring
33
62
uptimerobot :
34
63
monitorid : " {{ uptimerobot.monitorid }}"
46
75
47
76
- name : Copying WAR file
48
77
copy :
49
- src : " {{ local_war_dir }}/mystamps.war"
78
+ src : " {{ remote_war_dir }}/mystamps-candidate .war"
50
79
dest : " {{ remote_war_dir }}/mystamps.war"
80
+ remote_src : yes
51
81
owner : mystamps
52
82
group : mystamps
53
83
mode : ' 0755'
You can’t perform that action at this time.
0 commit comments