From c27519d8a8369eb6a1ed5e9c50457a7ac804865d Mon Sep 17 00:00:00 2001 From: lakshmi164585 <115771905+lakshmi164585@users.noreply.github.com> Date: Fri, 24 Feb 2023 15:03:17 +0530 Subject: [PATCH] Update ansibleplaybook.yaml --- ansibleplaybook.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ansibleplaybook.yaml b/ansibleplaybook.yaml index 7960be862..1f7b1aec4 100644 --- a/ansibleplaybook.yaml +++ b/ansibleplaybook.yaml @@ -9,11 +9,6 @@ name: openjdk-17-jdk state: present update_cache: true - - name: get url - ansible.builtin.get_url: - dest: /tmp - url: https://dev.azure.com/bujji1011bujji0481/_apis/resources/Containers/{{Build.ContainerId}}/drop?itemPath=drop%2Ftarget%2Fspring-petclinic-3.0.0-SNAPSHOT.jar - mode: '777' - name: edit the service file ansible.builtin.copy: dest: /etc/systemd/system/spc.service @@ -21,7 +16,7 @@ [Unit] Description=Manage Java service [Service] - WorkingDirectory=/home/ubuntu + WorkingDirectory=/home/ubuntu/build/ ExecStart=java -jar spring-petclinic-3.0.0-SNAPSHOT.jar Type=simple Restart=on-failure