mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update ansibleplaybook.yaml
This commit is contained in:
parent
fbea7e3bb3
commit
c27519d8a8
1 changed files with 1 additions and 6 deletions
|
@ -9,11 +9,6 @@
|
||||||
name: openjdk-17-jdk
|
name: openjdk-17-jdk
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
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
|
- name: edit the service file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/systemd/system/spc.service
|
dest: /etc/systemd/system/spc.service
|
||||||
|
@ -21,7 +16,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Manage Java service
|
Description=Manage Java service
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/home/ubuntu
|
WorkingDirectory=/home/ubuntu/build/
|
||||||
ExecStart=java -jar spring-petclinic-3.0.0-SNAPSHOT.jar
|
ExecStart=java -jar spring-petclinic-3.0.0-SNAPSHOT.jar
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Reference in a new issue