Role to retrieve OEM agent oracle home and owner.
Tested on OEM 12c (12.1.0.4).
OEM_URL: https://oem.example.com:8090/em # URL which can be used to login to OEM.
OEM_PASSWORD: q1w2e3 # sysman password for OEM.
OEM_HOST: oms1.example.com # One of OEM's nodes. Ansible host should have ssh-key based access to it.
OEM_AGENT_PORT: 3872 # agent port
site.yml
- hosts: weblogic, adminsu, singlehosts
roles:
- dborysenko.oem-agent-get-home
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
BSD
Dmytro Borysenko [email protected]