oravirt / ansible-oracle-modules

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

oracle_user: re-add grants option handling that was (mistakenly?) removed #152

Closed jacekkow closed 4 years ago

jacekkow commented 4 years ago

I don't know why but commit https://github.com/oravirt/ansible-oracle-modules/commit/ebe743447d7ffd71716d078acf7e30512e1238a8#diff-480f28d8e7311aa806640876f6d04ac2L199 ("Lots of changes") effectively made grants option of oracle_user inoperable.

This commit re-enables broken functionality.

Rendanic commented 4 years ago

It is a good idea to remove the grant option from oracle_user. You get a problem, when grants depends on user who are not existing during the 'create user'. It is better to create all users and execute the grant with a different module at a later time of the plybook executiont.

oravirt commented 4 years ago

Hi, Really sorry about not getting back to you in a timely fashion, but: I removed the grants from oracle_user because it never should have been there in the first place. There is another module (oracle_grants) that is better suited to deal with grants.