-
Notifications
You must be signed in to change notification settings - Fork 92
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
The keep_comments_at_rules
option of postgresql_pg_hba
breaks idempotency
#776
Comments
i concur w/ the proposed removal of the option. i'm not sure we need to support adding 'out-of-line' comments. seems like if the user wants that, they could use the |
I introduced the Using a
Supporting management of comments which don't belong to a specific rule (for example gathered at the top of the pg_hba.conf) would be nice, but I think that's a new feature and therefore low priority. |
@betanummeric What I propose is to change the behavior to always be The required changes are already implemented in #778 (that one needs more work, but you can take a look). Using the bulk-rules feature in combination with turning off sorting will give you full flexibility with comments that are not associated with a specific rule at the expense of having to sort your rules manually. I consider broken idempotency a bug and I want to fix that, even if it means implementing a new feature. |
i have no opinion on this proposal as I don't use the module.
|
SUMMARY
if
keep_comments_at_rules
isfalse
(which is the default) this breaks idempotencyISSUE TYPE
COMPONENT NAME
postgresql_pg_hba
ANSIBLE VERSION
COLLECTION VERSION
All versions of the collections since
1.5.0
STEPS TO REPRODUCE
Run this playbook twice:
EXPECTED RESULTS
As shown above the same comments are added and moved over and over again
ACTUAL RESULTS
The comments don't get added several times
SUGGESTED FIX
Completely remove the
keep_comments_at_rules
option and add a way to add a comment to the top of the file.The text was updated successfully, but these errors were encountered: