Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isam ansible remove a group from a role #159

Open
rfransix opened this issue Oct 30, 2019 · 8 comments
Open

isam ansible remove a group from a role #159

rfransix opened this issue Oct 30, 2019 · 8 comments

Comments

@rfransix
Copy link

Hi, while overwriting a key requires adding the new value to the yml.
How do i remove a key that could be in a multi-valued field, like the mgmt az role field?
I added a group that needs to be removed.
Thank you.

@ram-ibm
Copy link
Collaborator

ram-ibm commented Dec 7, 2019

Were you able to resolve this please?

@rfransix
Copy link
Author

rfransix commented Dec 10, 2019 via email

@rfransix
Copy link
Author

rfransix commented Jan 6, 2020

Hi, revisiting this query to IBMers: can anyone help resolve this issue ?

@ram-ibm
Copy link
Collaborator

ram-ibm commented Jan 10, 2020

Please provide sample data that you have and are looking to replace it with new values. I speculate you will want to use ibmsecurity.isam.base.management_authorization.role_group.delete()?

@rfransix
Copy link
Author

Hi, when i use the delete action, that fails with the following:

PLAY [Configure Mgmt AZ] ********************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [hostname.com]

TASK [add_mgmtazn_role : Snapshot Appliance Before Deleting Management Authorization Roles] *************************************************************************************************
ok: [hostname.com]

TASK [add_mgmtazn_role : Delete Management Authorization Roles] *****************************************************************************************************************************
failed: [hostname.com] (item=wwwadmin) => {"ansible_loop_var": "item", "changed": false, "item": "wwwadmin", "log": "", "msg": "Error> action does not have the right set of arguments or there is a code bug! Options: isamAppliance=isam_server, force=False, name="wwwadmin"", "name": "ibmsecurity.isam.base.management_authorization.role_group.delete"}

PLAY RECAP **********************************************************************************************************************************************************************************
hostname.com : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

@ram-ibm
Copy link
Collaborator

ram-ibm commented Feb 7, 2020

The function is looking for a group_name -- are you looking to remove a group from a role or something else?

@rfransix
Copy link
Author

rfransix commented Feb 7, 2020 via email

@rfransix
Copy link
Author

rfransix commented Mar 2, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants