mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
Create springpet.yml
This commit is contained in:
parent
314108fc84
commit
6ef35dbd6c
1 changed files with 18 additions and 0 deletions
18
springpet.yml
Normal file
18
springpet.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: download and 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
|
||||||
|
dest: /usr/bin/java -jar spring-petclinic-2.7.3.jar
|
||||||
|
- name: to copy service file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: /home/ubuntu/java_servicefile
|
||||||
|
dest: /etc/systemd/system/spring-petclinic.service
|
||||||
|
- name: start the service file
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
|
name: spring-petclinic
|
Loading…
Reference in a new issue