From 67481fe73bf962b35d6f10f1ece1148fa142ed57 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 27 Sep 2017 08:53:56 +0200 Subject: [PATCH] Fixes ansible deployment --- playbook.yaml | 7 ++++++- pom.xml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/playbook.yaml b/playbook.yaml index cbca85d9d..ba33b91d8 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -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: diff --git a/pom.xml b/pom.xml index 74f852cc7..a8a1eec00 100644 --- a/pom.xml +++ b/pom.xml @@ -118,6 +118,7 @@ + spring-petclinic org.springframework.boot