-
Notifications
You must be signed in to change notification settings - Fork 74
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
ibm_is_security_group_rule is not idempotent #76
Comments
@kdelee I could be wrong, but I've found that for many modules, idempotency is controlled via the usage of the id:
description:
- (Required when updating or destroying existing resource) IBM Cloud Resource ID.
required: False
type: str This however requires you to retrieve the ID before creating the resource. In your case, you'd need to use the |
Confused as it seems you can not get it? rule_id is *nothing?? ok: [localhost] => { |
ID is there, try |
https://github.com/IBM-Cloud/ansible-collection-ibm/blob/master/plugins/modules/ibm_is_security_group_rule.py
If you run this module multiple times with the same ports,
It just keeps adding more rules, even though the rules are the same. This is not idempotent behavior, and causes users to run into the max limit of 50 rules per security group
The text was updated successfully, but these errors were encountered: