Skip to content

Ansible playbook for patching WebLogic 11g/12c, BSU, SOA, OSB, WebGate Agents, upgrading jdk and restarting environment using existing stop/start scripts.

Notifications You must be signed in to change notification settings

g1rao/WebLogic_Automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Oracle Fusion Middleware patching and stop/starting with Ansible

Playbooks for automated activities for WebLogic 11g/12c (tbc), SOA, OSB and WebGate Agents.

Requirements

  • Sufficient sudo access, f.e. %User ALL=(weblogic) ALL, /bin/bash -c

Dependencies

  • Ansible installed on a host
  • SSH access from Ansible Controller to FMW hosts

Example #1 - WebLogic/OSB/SOA

Dry-run with Ansible check mode

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass --check -e "@templates/patch_wls.json"

Patch WebLogic

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass -e "@templates/patch_wls.json"

Patch SOA

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass -e "@templates/patch_soa.json"

Rollback WebLogic patches

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass -e "@templates/rollback_wls.json"

Restart WebLogic servers

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass -t restart

Restore backup(s) created earlier for WebLogic servers

$ ansible-playbook wls.yml - inventories/wls_inv.yml --ask-pass --ask-become-pass -e "@templates/restore_backup.json"

Example #2 - WebGate Agents

Dry-run with Ansible check mode

$ ansible-playbook webgate.yml - inventories/webgate_inv.yml --ask-pass --ask-become-pass --check -e "@templates/patch_webgate.json"

Patch WebGate

$ ansible-playbook webgate.yml - inventories/webgate_inv.yml --ask-pass --ask-become-pass -e "@templates/patch_webgate.json"

Rollback WebGate patches

$ ansible-playbook webgate.yml - inventories/webgate_inv.yml --ask-pass --ask-become-pass -e "@templates/rollback_webgate.json"

Restart webservers

$ ansible-playbook webgate.yml - inventories/webgate_inv.yml --ask-pass --ask-become-pass -t restart

Restore backup(s) created earlier for WebGate

$ ansible-playbook webgate.yml - inventories/webgate_inv.yml --ask-pass --ask-become-pass -e "@templates/restore_backup.json"

About

Ansible playbook for patching WebLogic 11g/12c, BSU, SOA, OSB, WebGate Agents, upgrading jdk and restarting environment using existing stop/start scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published