diff --git a/roles/base_installation/tasks/main.yml b/roles/base_installation/tasks/main.yml index 29d4f42..9997b9c 100644 --- a/roles/base_installation/tasks/main.yml +++ b/roles/base_installation/tasks/main.yml @@ -85,8 +85,6 @@ owner: jetty group: dba mode: '0755' - notify: - - stopALL - name: Copy file startALL with owner and permissions copy: src: ./files/startALL diff --git a/site.yml b/site.yml index 867d54c..4ec0eb5 100644 --- a/site.yml +++ b/site.yml @@ -68,7 +68,28 @@ #- ams_0013_8.0.9.0 #- ams_0013_8.0.9.0 - + handlers: + - name: stopALL + command: ./stopALL + args: + chdir: "/home/jetty" + async: 1 + poll: 0 + + - name: Wait for status File Appserver is absent + local_action: + module: wait_for + path: /opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.status + state: absent + async: 120 + poll: 5 + + - name: startALL + command: ./startALL + args: + chdir: "/home/jetty" + async: 120 + poll: 5 ########################################################## @@ -89,6 +110,29 @@ #- ams_0013_8.0.9.0 + handlers: + - name: stopALL + command: ./stopALL + args: + chdir: "/home/jetty" + async: 1 + poll: 0 + + - name: Wait for status File Appserver is absent + local_action: + module: wait_for + path: /opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.status + state: absent + async: 120 + poll: 5 + + - name: startALL + command: ./startALL + args: + chdir: "/home/jetty" + async: 120 + poll: 5 + ########################################################## @@ -109,7 +153,29 @@ - ams_0013_8.0.9.0 - + + handlers: + - name: stopALL + command: ./stopALL + args: + chdir: "/home/jetty" + async: 1 + poll: 0 + + - name: Wait for status File Appserver is absent + local_action: + module: wait_for + path: /opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.status + state: absent + async: 120 + poll: 5 + + - name: startALL + command: ./startALL + args: + chdir: "/home/jetty" + async: 120 + poll: 5