oravirt / ansible-oracle-modules

Oracle modules for Ansible
MIT License
214 stars 160 forks source link

oracle_services does not work with HAS anymore #141

Open matthiaslink77 opened 4 years ago

matthiaslink77 commented 4 years ago

Hello,

after I just re-downloaded the new modules, I came across a huge change in the oracle_services module, which leads to basically no installation on HAS (Single Instance, but GI) anymore.

srvctl modify service does not have the following parameters with HAS (as opposed to RAC/CRS): -modifyconfig -preferred

so as this is tried during installation, the installation fails (output only for preferred):

PRKO-2002 : Invalid command line option: -preferred\n, stderr: "}

I already tried to remove the lines, but was not successful so far. Only modifyconfig removal has been ok, but preferred gives me some headache. Anyhow this needs more thought. There needs to be a check if this is RAC/CRS or HAS only an then only use these modify commands on the service, if it is RAC/CRS.

Please let me know your thoughts on this. Best regards, Matt.