Update springpet.yml

This commit is contained in:
nagarjuna33 2023-03-16 14:42:42 +05:30 committed by GitHub
parent 7cd700ff98
commit ed9f33a360
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,15 @@
---
- name: download and deploy spring-petclinic application
- name: deploy spring-petclinic application
become: yes
hosts: all
tasks:
- name: to copy service file
ansible.builtin.copy:
src: /home/ubuntu/spring-petclinic-2.7.3.jar
src: /home/ansible/remote/workspace/spring/target/spring-petclinic-2.7.3.jar
dest: /usr/bin/java -jar spring-petclinic-2.7.3.jar
- name: to copy service file
ansible.builtin.copy:
src: /home/ubuntu/java_servicefile
src: /home/ansible/java_servicefile
dest: /etc/systemd/system/spring-petclinic.service
- name: start the service file
ansible.builtin.systemd: