Role to decommission OEM agents.
oem-agent-get-home role is required. get-fmw-domain-structure role might be required if you want to use that feature.
OEM_URL: https://oem.example.com:8090/em # URL which can be used to login to OEM.
OEM_PASSWORD: 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
dborysenko.oem-agent-get-home dborysenko.get-fmw-domain-structure
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
site.yml
- hosts: adminserver
roles:
- dborysenko.get-fmw-domain-structure
- hosts: weblogic, adminsu, singlehosts
gather_facts: False
roles:
- dborysenko.oem-agent-get-home
- dborysenko.oem-agent-decommission
hosts
[adminserver]
adminserver.example.com
[singlehosts]
[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 borysenus@gmail.com