Add modify_inactive_option option to ini_file module to ignore matching commented key:value pairs (#7401)

* Add `modify_inactive_option` option to `ini_file` module to ignore matching commented key:value pairs

* Add changelog fragment

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* Minor comment fix

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
njutn95 2023-10-25 08:48:49 +02:00 committed by GitHub
commit 6ee1f27304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 152 additions and 8 deletions

View file

@ -44,3 +44,6 @@
- name: include tasks to test ignore_spaces
include_tasks: tests/05-ignore_spaces.yml
- name: include tasks to test modify_inactive_option
include_tasks: tests/06-modify_inactive_option.yml