dborysenko.oem-agent-get-home
OEM Agent Home Retrieval
This guide explains how to get the Oracle Home and owner of the OEM agent.
Requirements
Tested on OEM version 12c (12.1.0.4).
Role Variables
- OEM_URL: https://oem.example.com:8090/em - The URL to log in to OEM.
- OEM_PASSWORD: q1w2e3 - The password for the sysman account in OEM.
- OEM_HOST: oms1.example.com - One of the nodes in OEM. The Ansible host must have SSH key access to it.
- OEM_AGENT_PORT: 3872 - The port for the agent.
Example Playbook
File: site.yml
- hosts: weblogic, adminsu, singlehosts
roles:
- dborysenko.oem-agent-get-home
File: hosts
[adminserver]
[singlehosts]
webserver.example.com
[weblogic]
[all]
[all:children]
adminserver
singlehosts
weblogic
[all:vars]
ansible_user=dborysenko
ansible_become_method=su
ansible_become_exe=dzdo
ansible_become_flags="su -"
[deleg]
oms1.example.com
[deleg:vars]
ansible_user=oracle
License
This work is licensed under the BSD license.
Author Information
Dmytro Borysenko - borysenus@gmail.com