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 - name: Copy spring-petclinic
copy: copy:
src: target/spring-petclinic-1.5.1.jar src: target/spring-petclinic.jar
dest: /opt/spring-petclinic.jar dest: /opt/spring-petclinic.jar
owner: deploy owner: deploy
mode: u+rwx mode: u+rwx
notify: notify:
- restart service - restart service
- name: Enable service
service:
name: spring-petclinic
enabled: yes
handlers: handlers:
- name: reload systemd - name: reload systemd
systemd: systemd:

View file

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