Skip to content

Commit 1bf3966

Browse files
committed
ci(deploy.yml): use playbook-relative path instead of rely on the current dir.
This change makes deployment work on Ansible >2.1.10 See also related issue: ansible/ansible#29618 Prerequisite for #1142
1 parent e1312ec commit 1bf3966

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/scripts/ci/ansible/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
gather_facts: no
55
remote_user: mystamps
66
vars:
7+
local_war_dir: ../../../../../target
78
remote_war_dir: /data/mystamps
89
uptimerobot:
910
monitorid: 'MyStamps'
@@ -12,7 +13,7 @@
1213

1314
- name: Getting info about WAR file
1415
stat:
15-
path: 'target/mystamps.war'
16+
path: "{{ local_war_dir }}/mystamps.war"
1617
get_checksum: no
1718
get_md5: no
1819
register: war_file
@@ -40,7 +41,7 @@
4041

4142
- name: Copying WAR file
4243
copy:
43-
src: '../../../../../target/mystamps.war'
44+
src: "{{ local_war_dir }}/mystamps.war"
4445
dest: "{{ remote_war_dir }}/mystamps.war"
4546
owner: mystamps
4647
group: mystamps

0 commit comments

Comments
 (0)