Fixes ansible deployment

This commit is contained in:
Sebastian Sdorra 2017-09-27 08:53:56 +02:00
parent d55ae63656
commit 67481fe73b
2 changed files with 7 additions and 1 deletions

View file

@ -14,13 +14,18 @@
- name: Copy spring-petclinic
copy:
src: target/spring-petclinic-1.5.1.jar
src: target/spring-petclinic.jar
dest: /opt/spring-petclinic.jar
owner: deploy
mode: u+rwx
notify:
- restart service
- name: Enable service
service:
name: spring-petclinic
enabled: yes
handlers:
- name: reload systemd
systemd:

View file

@ -118,6 +118,7 @@
</dependencies>
<build>
<finalName>spring-petclinic</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>