java_keystore: overwrite instead of fail when password or alias does not match (#2262)

* Overwrite instead of fail when password does not match.

* Update documentation.

* Fix tests.

* Update plugins/modules/system/java_keystore.py

Co-authored-by: Amin Vakil <info@aminvakil.com>

* Fix documentation.

* Apply suggestions from code review

Co-authored-by: quidame <quidame@poivron.org>

* Update tests/unit/plugins/modules/system/test_java_keystore.py

* One more.

Co-authored-by: Amin Vakil <info@aminvakil.com>
Co-authored-by: quidame <quidame@poivron.org>
This commit is contained in:
Felix Fontein 2021-04-19 06:59:52 +02:00 committed by GitHub
commit 91a0264f38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 30 deletions

View file

@ -0,0 +1,8 @@
breaking_changes:
- "java_keystore - instead of failing, now overwrites keystore if the alias (name) is changed.
This was originally the intended behavior, but did not work due to a logic error. Make sure
that your playbooks and roles do not depend on the old behavior of failing instead of
overwriting (https://github.com/ansible-collections/community.general/issues/1671)."
- "java_keystore - instead of failing, now overwrites keystore if the passphrase is changed.
Make sure that your playbooks and roles do not depend on the old behavior of failing instead
of overwriting (https://github.com/ansible-collections/community.general/issues/1671)."