Skip to content

Commit

Permalink
Final code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Nov 16, 2023
1 parent d558b52 commit 023836c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ansible/roles/oasys-bip/tasks/clone_bip_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions ansible/roles/oasys-bip/tasks/services.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand Down

0 comments on commit 023836c

Please sign in to comment.