-
Notifications
You must be signed in to change notification settings - Fork 84
/
java-settle.yml
39 lines (28 loc) · 913 Bytes
/
java-settle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# This playbook deploys the whole application stack in this site.
- hosts: localhost
remote_user: root
roles:
- { role: java_git_comm, tags: [ 'update_pre', 'pkbuild', 'git' ] }
- { role: java_create_tar_comm, tags: [ 'update_pre', 'pkbuild', 'git', 'create_tar'] }
- hosts: JavaSettle
remote_user: root
roles:
- { role: java_updatefile_comm, tags: [ 'update_pre', 'updatefile' ] }
# - { role: tomcat, tags: [ 'process', 'tomcat' ] }
- hosts: JavaSettle
remote_user: root
tasks:
- name: tomcat restart(stop)
tags: pstop
register: TomcatStop
shell: ./settle_shutdown.sh chdir=/opt/
- debug: var=TomcatStop
- name: sleeping for five seconds
tags: process
command: sleep 5
- name: tomcat restart(start)
tags: pstart
register: TomcatStart
shell: ./settle_startup.sh chdir=/opt/
- debug: var=TomcatStart