From 023836cc32691993d3df6bcc2b184470051bc335 Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Thu, 16 Nov 2023 14:16:29 +0000 Subject: [PATCH] Final code --- .../roles/oasys-bip/tasks/clone_bip_software.yml | 12 ------------ ansible/roles/oasys-bip/tasks/services.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml index 4dad9b865..e74a8f3e8 100644 --- a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml +++ b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml @@ -262,17 +262,5 @@ main 2>&1 | logger -p local3.info -t ansible-oracle-bip when: not ansible_check_mode - - name: Stop Weblogic and nodemanager - become_user: oracle - ansible.builtin.shell: | - set -eo pipefail - main() { - . {{ wl_home }}/server/bin/setWLSEnv.sh - {{ domain_home }}/{{ domain_name }}/bin/stoptWebLogic.sh - kill -9 `ps -ef | grep weblogic.NodeManager|grep -v grep | awk '{ print $2 " " $3 }'` - } - main 2>&1 | logger -p local3.info -t ansible-oracle-bip - when: not ansible_check_mode - # block when: not BIP_software_installed.stat.exists diff --git a/ansible/roles/oasys-bip/tasks/services.yml b/ansible/roles/oasys-bip/tasks/services.yml index 8221adcd6..8ca9bb49e 100644 --- a/ansible/roles/oasys-bip/tasks/services.yml +++ b/ansible/roles/oasys-bip/tasks/services.yml @@ -1,4 +1,17 @@ --- + +- name: Stop Weblogic and nodemanager + become_user: oracle + ansible.builtin.shell: | + set -eo pipefail + main() { + . {{ wl_home }}/server/bin/setWLSEnv.sh + {{ domain_home }}/{{ domain_name }}/bin/stopWebLogic.sh + kill -9 `ps -ef | grep weblogic.NodeManager|grep -v grep | awk '{ print $2 " " $3 }'` + } + main 2>&1 | logger -p local3.info -t ansible-oracle-bip + when: not ansible_check_mode + - name: Create scripts install directory ansible.builtin.file: path: "{{ scripts_dir }}"