Update ansibleplaybook.yaml

This commit is contained in:
lakshmi164585 2023-02-24 15:03:17 +05:30 committed by GitHub
parent fbea7e3bb3
commit c27519d8a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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