IBM-Security / isam-ansible-roles

Ansible Custom Modules, Handlers and Tasks for ISAM. Requires "ibmsecurity" python package.
Apache License 2.0
24 stars 43 forks source link

delete lmi sysaccount user and group #177

Closed rfransix closed 4 years ago

rfransix commented 4 years ago

Hi, after building a delete_sysaccount_user (from add_sysaccount_user) role, and setting the vars to existing user and group that need to be deleted, we get...is deleting lmi users/groups still not possible...notice how i changed the action from create to "delete*.

TASK [delete_sysaccount_user : Delete LMI system account user] ** fatal: [host.net.com]: FAILED! => {"changed": false, "log": "", "msg": "Error> action does not have the right set of arguments or there is a code bug! Options: isamAppliance=isam_server, force=False, password=None, id=\"superuser\", groups=\"superuser\"", "name": "ibmsecurity.isam.base.sysaccount.users.delete"}

ram-ibm commented 4 years ago

Here is what the delete function is expecting: delete(isamAppliance, id, check_mode=False, force=False)

Based on the error - you are passing: isamAppliance=isam_server, force=False, password=None, id="superuser", groups="superuser"

You should not pass password, or groups. create() takes them but not delete.

rfransix commented 4 years ago

Thank you. removing groups from the main.yml solved the issue..