mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
Update springpet.yml
This commit is contained in:
parent
7cd700ff98
commit
ed9f33a360
1 changed files with 3 additions and 3 deletions
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: download and deploy spring-petclinic application
|
- name: deploy spring-petclinic application
|
||||||
become: yes
|
become: yes
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: to copy service file
|
- name: to copy service file
|
||||||
ansible.builtin.copy:
|
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
|
dest: /usr/bin/java -jar spring-petclinic-2.7.3.jar
|
||||||
- name: to copy service file
|
- name: to copy service file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: /home/ubuntu/java_servicefile
|
src: /home/ansible/java_servicefile
|
||||||
dest: /etc/systemd/system/spring-petclinic.service
|
dest: /etc/systemd/system/spring-petclinic.service
|
||||||
- name: start the service file
|
- name: start the service file
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|
Loading…
Reference in a new issue