Commit c64408b 1 parent 675a9d1 commit c64408b Copy full SHA for c64408b
File tree 1 file changed +9
-5
lines changed
playbooks/oracle_release_update/update_oem_after_deinstall/tasks
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 12
12
failed_when : existing_oracle_home.rc > 1
13
13
changed_when : false
14
14
15
- - debug : var=existing_oracle_home.stdout_lines[1]
15
+ - name : Seach Output For Oracle Home Name
16
+ set_fact :
17
+ oracle_home_name : " {{ item }}"
18
+ loop : " {{ existing_oracle_home.stdout_lines }}"
19
+ when : item is search(agent_host)
20
+
21
+ - debug : var=oracle_home_name
16
22
17
23
# # This block will run if the Deinstalled Oracle Home Target still exists
18
24
# - name: Delete Deinstalled Oracle Home Target
19
25
# block:
20
26
# - name: Delete Target from Repository
21
27
# shell: |
22
- # . ~/.bash_profile
23
- # {{ emcli }} login -username=sysman -password={{ sysman_password }} -force
24
- # {{ emcli }} sync
25
- # {{ emcli }} delete_target -name="{{ existing_oracle_home.stdout }}" -type="oracle_home"
28
+ # . {{ stage }}/emcli_login.sh
29
+ # {{ emcli }} delete_target -name="{{ oracle_home_name }}" -type="oracle_home"
26
30
27
31
# # Pause Until OEM has Finished Deleting the Target
28
32
# # (Otherwise it will fail when we try to add the new target)
You can’t perform that action at this time.
0 commit comments